Skip to content

Commit e12bd2e

Browse files
authored
Merge pull request rust-osdev#67 from rust-osdev/print-version
Parse `--version` argument without subcommand (`bootimage --version`)
2 parents 2135e0a + d6dfb49 commit e12bd2e

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)