Commit 9292faa5 authored by Peter Pentchev's avatar Peter Pentchev

Output the usage message on stderr on bad options.

parent b28640f9
......@@ -3,6 +3,8 @@ Change log for hexer, the multi-view binary editor
1.0.5 not yet ;)
- correct some typographical and grammatical errors
- exit with status 0 if -h/--help is specified
- output the usage message to the standard error stream if
an invalid command-line option is specified
1.0.4 2018/03/24
- allow hexer to be cross-built: if CC_FOR_BUILD is defined in
......
......@@ -165,7 +165,7 @@ process_args(const int argc, char * const argv[])
exit_f = 1;
break;
default:
puts(usage_message);
fputs(usage_message, stderr);
exit_f = 2;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment