Re: [PATCH] objtool: Print top level commands on incorrect usage

2017-10-14 Thread Kamalesh Babulal
On Friday 13 October 2017 10:08 PM, Josh Poimboeuf wrote: [...] Signed-off-by: Kamalesh Babulal --- tools/objtool/objtool.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/objtool/objtool.c b/tools/objtool/objtool.c index 31e0f91..07f3299 100644 --- a/tools/objto

Re: [PATCH] objtool: Print top level commands on incorrect usage

2017-10-13 Thread Josh Poimboeuf
On Fri, Oct 13, 2017 at 01:51:12PM +0530, Kamalesh Babulal wrote: > Maintain the consistency with objtool subcommands, by > printing cmd_usage() of top level commands, along with > the error. When incorrect option/command is passed to > objtool. Also change the exit code to 129, like other > objtoo

[PATCH] objtool: Print top level commands on incorrect usage

2017-10-13 Thread Kamalesh Babulal
Maintain the consistency with objtool subcommands, by printing cmd_usage() of top level commands, along with the error. When incorrect option/command is passed to objtool. Also change the exit code to 129, like other objtool subcommands. After the patch: $ ./objtool -j Unknown option: -j usage: