Commit f15c648f authored by Matt Helsley's avatar Matt Helsley Committed by Josh Poimboeuf

objtool: Exit successfully when requesting help

When the user requests help it's not an error so do not exit with
a non-zero exit code. This is not especially useful for a user but
any script that might wish to check that objtool --help is at least
available can't rely on the exit code to crudely check that, for
example, building an objtool executable succeeds.
Signed-off-by: default avatarMatt Helsley <mhelsley@vmware.com>
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
parent ae033f08
......@@ -58,7 +58,9 @@ static void cmd_usage(void)
printf("\n");
exit(129);
if (!help)
exit(129);
exit(0);
}
static void handle_options(int *argc, const char ***argv)
......
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