Check in script for command line option use?

Any questions? Need some help?
Post Reply
Uyenvu123
Posts: 1
Joined: 26 Sep 2019, 02:19

Check in script for command line option use?

Post by Uyenvu123 »

Hello guys

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

Uyen
User avatar
rednoah
The Source
Posts: 18823
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Check in script for command line option use?

Post by rednoah »

Unfortunately, scripts are not required to obey any kind of specification. Default FileBot command-line options are accessible to scripts, and may or may not be used. In addition, scripts may access arbitrary additional variables passed in via --def name=value pairs.



EDIT:

There's also no way to print the current list of command-line options being used, if that's what you're asking for. The filebot -script fn:sysenv can be useful for debugging command-line arguments though.
:idea: Please read the FAQ and How to Request Help.
Post Reply