Currently, an executing script will fail if an attempt is made to access a missing or undefined args. For instance, the following will fail:
def test_args:
if args.myArg == "":
If myArg was not provided as script argument (--args or --args-file) the previous will fail.
As a script author, missing arguments should fail silently by returning empty string. Or provide a way to test their declaration.
Currently, an executing script will fail if an attempt is made to access a missing or undefined args. For instance, the following will fail:
If
myArgwas not provided as script argument (--argsor--args-file) the previous will fail.As a script author, missing arguments should fail silently by returning empty string. Or provide a way to test their declaration.