diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-02 07:29:24 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-02 07:29:24 +0200 |
| commit | fb2d20e715dd04d27c4873c4989202133783f161 (patch) | |
| tree | 83d993883dcaa358c807743d0d16b57375a63280 /crates/readrom/src/main.rs | |
| parent | 834e286af70b7e65a72316fddc4fa3c0c429ced8 (diff) | |
| download | tools.nes-fb2d20e715dd04d27c4873c4989202133783f161.tar.gz tools.nes-fb2d20e715dd04d27c4873c4989202133783f161.zip | |
Add -h and -v options on the help message
On all binaries there were these two options missing from the help
message.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates/readrom/src/main.rs')
| -rw-r--r-- | crates/readrom/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/readrom/src/main.rs b/crates/readrom/src/main.rs index 4308d2e..e930e0e 100644 --- a/crates/readrom/src/main.rs +++ b/crates/readrom/src/main.rs @@ -15,7 +15,9 @@ fn print_help() { println!("Display information about NES/Famicom ROM files.\n"); println!("usage: readrom [OPTIONS] <FILE>\n"); println!("Options:"); - println!(" -H, --header\tJust print the ROM header and quit."); + println!(" -h, --help\t\tPrint this message."); + println!(" -H, --header\t\tJust print the ROM header and quit."); + println!(" -v, --version\t\tPrint the version of this program."); std::process::exit(0); } |
