Commit b28640f9 authored by Peter Pentchev's avatar Peter Pentchev

Exit with status 0 if -h/--help is specified.

parent 61dc42c0
......@@ -2,6 +2,7 @@ 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
1.0.4 2018/03/24
- allow hexer to be cross-built: if CC_FOR_BUILD is defined in
......
......@@ -161,10 +161,13 @@ process_args(const int argc, char * const argv[])
++tio_tite_f;
break;
case 'h': /* help */
default:
puts(usage_message);
exit_f = 1;
break;
default:
puts(usage_message);
exit_f = 2;
break;
}
}
......@@ -193,7 +196,8 @@ process_args(const int argc, char * const argv[])
if (!current_buffer) break;
}
if (current_buffer) he_status_message(0);
}
} else
exit_f--;
return exit_f;
}
/* process_args */
......
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