Skip to content

Commit d6dfb49

Browse files
committed
Parse --version argument without subcommand (bootimage --version)
1 parent 2135e0a commit d6dfb49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ pub fn main() -> Result<()> {
2929
help::print_help();
3030
return Ok(())
3131
}
32+
Some("--version") => {
33+
help::print_version();
34+
return Ok(())
35+
}
3236
Some(other) => return Err(anyhow!(
3337
"Unsupported subcommand `{:?}`. See `bootimage --help` for an overview of supported subcommands.", other
3438
)),

0 commit comments

Comments
 (0)