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/nasm/src | |
| 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/nasm/src')
| -rw-r--r-- | crates/nasm/src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs index 6ca6d27..9cc3049 100644 --- a/crates/nasm/src/main.rs +++ b/crates/nasm/src/main.rs @@ -26,9 +26,11 @@ fn print_help() { println!("Options:"); println!(" -c, --config <FILE>\tLinker configuration to be used, whether an identifier or a file path."); println!(" -D <NAME>(=VALUE)\tDefine an 8-bit variable on the global scope (default: 1)"); + println!(" -h, --help\t\tPrint this message."); println!(" -o, --out <FILE>\tFile path where the output should be located after execution."); println!(" -s, --stats\t\tPrint the statistics on how segments have been filled."); println!(" --stdout\t\tPrint the output binary to the standard output."); + println!(" -v, --version\t\tPrint the version of this program."); println!(" -Werror\t\tWarnings should be treated as errors."); std::process::exit(0); } |
