pcp
[Top] [All Lists]

pmval -i vs pmstore -i

To: pcp developers <pcp@xxxxxxxxxxx>
Subject: pmval -i vs pmstore -i
From: Marko Myllynen <myllynen@xxxxxxxxxx>
Date: Mon, 9 May 2016 14:38:23 +0300
Delivered-to: pcp@xxxxxxxxxxx
Organization: Red Hat
Reply-to: Marko Myllynen <myllynen@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0
Hi,

pmval and pmstore are the two clients which allow specifying the
targeted instances with -i. pmval, like most other clients also accept
arguments in this manner:

$ pmval kernel.all-load -i "'1 minute'"

So options can follow after non-option arguments. pmval also accepts
multiple -i options.

pmstore, on the other does not allow either. Only one -i and options
can't follow non-options.

I think it would be more consistent and also help with scripting in
certain scenarios if pmstore would be like pmval in this regard.

Or is there are practical reason for this difference? If not I think
I'll at least file an RFE.

Thanks,

-- 
Marko Myllynen

<Prev in Thread] Current Thread [Next in Thread>