[Rivet] [Rivet-svn] rivet: Allow comma and space-separated analysis name lists to be...

Andy Buckley andy.buckley at cern.ch
Thu Nov 5 14:39:25 GMT 2015


Hi David,

I added the space-separated version with the idea that it would be very 
nice to be able to use shell brace expansion like

rivet -a "MC_{JET{,TAG}S,GENERIC}"

... of course forgetting that the braces won't expand inside a quoted 
string. D'oh. And without the quoted string we have exactly the 
one-token-per-option-flag problem you alluded to.

So unless anyone has bright ideas of how to use brace expansion to 
neatly request a lot of similarly named analyses, I'll indeed revert 
this to use comma only. Fiddly approaches with $() and other shell 
features don't count as either bright ideas or nice UI ;-)

Andy


On 05/11/15 14:29, David Grellscheid wrote:
> Hi Andy,
>
> Please make it comma-only. Decisiveness in the API helps in the long
> run, and it also avoids abiguity issues with the name of the hepmc file
> when -a is the last option. Or is that magically avoided somehow?
>
> See you,
>
>    David
>
>
> On 05/11/2015 12:45, Rivet Mercurial wrote:
>> details:   https://rivet.hepforge.org/hg/rivet/rev/9ba022901c9a
>> branches:  release-2-4-x
>> changeset: 4914:9ba022901c9a
>> user:      Andy Buckley <andy at insectnation.org>
>> date:      Thu Nov 05 12:30:02 2015 +0000
>> description:
>> Allow comma and space-separated analysis name lists to be passed to a
>> single -a/--analysis/--analyses option.
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/rivet


-- 
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow


More information about the Rivet mailing list