Check in script for command line option use?

Any questions? Need some help?
Post Reply
jbr439
Posts: 5
Joined: 13 Aug 2012, 23:04

Check in script for command line option use?

Post 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
User avatar
rednoah
The Source
Posts: 22990
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Check in script for command line option use?

Post by rednoah »

You can use _args for that, e.g. _args.nonStrict. Check ArgumentBean.java on how the variables for each option are named.
:idea: Please read the FAQ and How to Request Help.
jbr439
Posts: 5
Joined: 13 Aug 2012, 23:04

Re: Check in script for command line option use?

Post by jbr439 »

Works like a charm. Thanks!
Post Reply