Print simple message if no subcommand
This commit is contained in:
parent
2a14c1a446
commit
1740f9276b
|
@ -61,8 +61,7 @@ async fn main() -> Result<()> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
("", None) => {
|
("", None) => {
|
||||||
let mut out = io::stdout();
|
println!("No subcommand given: see `mxadm help` for usage information");
|
||||||
app.write_long_help(&mut out).unwrap();
|
|
||||||
}
|
}
|
||||||
(c, _) => {
|
(c, _) => {
|
||||||
todo!("Subcommand '{}' not implemented yet!", c);
|
todo!("Subcommand '{}' not implemented yet!", c);
|
||||||
|
|
Loading…
Reference in New Issue