We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345c831 commit daf417bCopy full SHA for daf417b
src/args.rs
@@ -10,7 +10,7 @@ use crate::job::event::{RestartBehavior, RestartStrategy};
10
)]
11
pub struct Cli {
12
#[command(subcommand)]
13
- pub command: Commands,
+ pub command: Option<Commands>,
14
15
#[arg(long, short, help = "Print extra information")]
16
pub verbose: bool,
src/main.rs
@@ -128,7 +128,12 @@ async fn main() -> Result<()> {
128
colored::control::set_override(false);
129
}
130
131
- match args.command {
+ let Some(command) = args.command else {
132
+ let _ = <args::Cli as clap::CommandFactory>::command().print_help();
133
+ std::process::exit(0);
134
+ };
135
+
136
+ match command {
137
args::Commands::List {
138
all,
139
group,
0 commit comments