I am currently using NDesk.Options to manipulate my command line arguments. The problem I encountered now is that when I run with multiple flags, the computation is done in the order the flags appear. But this is not always what I want. For example for these arguments
-t 20 -g mailGroup
I want first the -g flag to be computed (which loads a mailGroup data) and just after it to compute the -t 20 (which is top 20 of some analysis). This works "-g mailGroup -t 20"
Also, my -t 20 will not work if nothing is loaded, so basically the -g mailGroup is a needed option before -t 20.
Is there an elegant way to provide priority of evaluation for these flags ? Also maybe dealing with the cases that one flag requires the existence of a subset of another flags to be computed before it (like for example I have multiple ways and forms of loading, not just -g).