From fb2d20e715dd04d27c4873c4989202133783f161 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 2 Sep 2025 07:29:24 +0200 Subject: Add -h and -v options on the help message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On all binaries there were these two options missing from the help message. Signed-off-by: Miquel Sabaté Solà --- crates/nasm/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/nasm/src/main.rs') 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 \tLinker configuration to be used, whether an identifier or a file path."); println!(" -D (=VALUE)\tDefine an 8-bit variable on the global scope (default: 1)"); + println!(" -h, --help\t\tPrint this message."); println!(" -o, --out \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); } -- cgit v1.2.3