sea-orm-cli showing help message when no sub-command provided

This commit is contained in:
Billy Chan 2021-07-02 10:42:56 +08:00
parent de7524e502
commit 47bb5b3ad7
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -40,4 +40,5 @@ pub fn build_cli() -> App<'static, 'static> {
.version(env!("CARGO_PKG_VERSION"))
.setting(AppSettings::VersionlessSubcommands)
.subcommand(entity_subcommand)
.setting(AppSettings::SubcommandRequiredElseHelp)
}