Skip to content

Ability to test for missing args #203

Description

@vladimirvivien

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions