Skip to content

Apache DataFusion SQL Query Engine

Enhance the help message for invalid command in datafusion-cli (#18603)

Congxian Qiu6d9ab4539966
diff --git a/datafusion-cli/src/exec.rs b/datafusion-cli/src/exec.rs
index d079a88a64..d95a22aa95 100644
--- a/datafusion-cli/src/exec.rs
+++ b/datafusion-cli/src/exec.rs
@@ -153,7 +153,7 @@ pub async fn exec_from_repl(
}
} else {
eprintln!(
- "'\\{}' is not a valid command",
+ "'\\{}' is not a valid command, you can use '\\?' to see all commands",
&line[1..]
);
}
@@ -168,7 +168,7 @@ pub async fn exec_from_repl(
}
}
} else {
- eprintln!("'\\{}' is not a valid command", &line[1..]);
+ eprintln!("'\\{}' is not a valid command, you can use '\\?' to see all commands", &line[1..]);
}
}
Ok(line) => {