diff --git a/eden/fs/cli_rs/edenfsctl/src/main.rs b/eden/fs/cli_rs/edenfsctl/src/main.rs index 389920e15fd9b..e5fa47eed2563 100644 --- a/eden/fs/cli_rs/edenfsctl/src/main.rs +++ b/eden/fs/cli_rs/edenfsctl/src/main.rs @@ -183,7 +183,8 @@ fn wrapper_main() -> Result { // UnknownArgument (whether or not --help was requested) and we // should fall back to Python. Err(e) => { - if e.kind() == clap::ErrorKind::DisplayHelp + if (e.kind() == clap::ErrorKind::DisplayHelp + || e.kind() == clap::ErrorKind::DisplayHelpOnMissingArgumentOrSubcommand) && should_use_rust_help(std::env::args(), &None).unwrap_or(false) { e.exit()