rcs-si / module_check

Check if environment variables within a module file are defined correctly
2 stars 0 forks source link

fixes to command_line.py #16

Closed bu-bgregor closed 5 months ago

bu-bgregor commented 6 months ago

in "is_module_published" check the length of the stderr for the return value:

    return len(result.stderr) > 0

For argument checking, set the -c flag to be required as it provided the name of the module to check:

    argParser.add_argument("-c", "--check", type=str, help="the name of module to be checked", required=True )

and then the if statement that checks if it's set can be removed.