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 75bdb3b commit f46c5f6Copy full SHA for f46c5f6
src/main.rs
@@ -33,7 +33,7 @@ const HELP: &str = "\
33
)]
34
struct Opt {
35
#[clap(subcommand)]
36
- serve: Option<Subcommand>,
+ subcommand: Option<Subcommand>,
37
}
38
39
#[derive(ClapSubcommand, Debug)]
@@ -60,9 +60,12 @@ async fn main() {
60
61
report(render::main());
62
63
- if opt.serve.is_some() {
64
- let _ = writeln!(io::stderr());
65
- report(serve::main().await);
+ match opt.subcommand {
+ None => {}
+ Some(Subcommand::Serve) => {
66
+ let _ = writeln!(io::stderr());
67
+ report(serve::main().await);
68
+ }
69
70
71
0 commit comments