Page 1 of 1

Check in script for command line option use?

Posted: 16 Aug 2012, 01:27
by jbr439
Hello

Is it possible to check in a script for a command line option? E.g., can I check in my script if '-non-strict' was used? I can't find any mention of this anywhere.

[Perfectly happy to RTFM if someone can point me to the right place]

Thanks

Re: Check in script for command line option use?

Posted: 16 Aug 2012, 04:11
by rednoah
You can use _args for that, e.g. _args.nonStrict. Check ArgumentBean.java on how the variables for each option are named.

Re: Check in script for command line option use?

Posted: 16 Aug 2012, 20:49
by jbr439
Works like a charm. Thanks!