[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52A8D2DA.7050409@gmail.com>
Date: Wed, 11 Dec 2013 14:02:18 -0700
From: David Ahern <dsahern@...il.com>
To: Ramkumar Ramachandra <artagnon@...il.com>,
LKML <linux-kernel@...r.kernel.org>
CC: Ingo Molnar <mingo@...nel.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: Re: [PATCH] perf list: fix --raw-dump
On 12/11/13, 3:16 AM, Ramkumar Ramachandra wrote:
> While adding usage information, 44d742e (perf list: Add usage,
> 2013-10-30) broke
>
> $ perf list --raw-dump
>
> by asking parse_options() to stop at
> non-option (PARSE_OPT_STOP_AT_NON_OPTION), hence parsing the option
> --raw-dump and barfing. Ask it to keep unknown options
> unparsed (PARSE_OPT_KEEP_UNKNOWN) so that we have a chance to handle it
> later. The trade-off that this patch makes is that
>
> $ perf list --foo
>
> will not error out like it used to.
Why not make raw_dump a proper argument?
View attachment "0001-perf-list-Fix-raw-dump-arg.patch" of type "text/plain" (1679 bytes)
Powered by blists - more mailing lists