Page 1 of 1

Check in script for command line option use?

Posted: 26 Sep 2019, 02:21
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

Re: Check in script for command line option use?

Posted: 26 Sep 2019, 10:07
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.