diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-08-11 01:59:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-11 01:59:40 +0000 |
commit | f2056627022d1666aa903868942de08562487911 (patch) | |
tree | 441e7dd431e0f44ff00b66de74e5e0c0a0c74b9f /func/cli.py | |
parent | fd58c917f5d21a12e32015a3f1478ffbfd19fee2 (diff) | |
parent | d826cafd69c9679a29a88a97699756cd408e4ac7 (diff) |
Merge "Fix Argument Parsing"
Diffstat (limited to 'func/cli.py')
-rw-r--r-- | func/cli.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/func/cli.py b/func/cli.py index 5e8f02cf..4613b507 100644 --- a/func/cli.py +++ b/func/cli.py @@ -54,13 +54,15 @@ class cli: @staticmethod def _parse_args(args): parser = argparse.ArgumentParser() - parser.add_argument('-l ', '--lab', help='Name of Lab on which being tested, These can' + parser.add_argument('-l ', '--lab', required=True, help='Name of Lab ' + 'on which being tested, These can' 'be found in the test_cases/ directory. Please ' 'ensure that you have edited the respective files ' 'before using them. For testing other than through Jenkins' ' The user should list default after -l . all the fields in' ' the files are necessary and should be filled') - parser.add_argument('-f', '--file', help='File in test_list with the list of tests. there are three files' + parser.add_argument('-f', '--file', required=True, help='File in ' + 'test_list with the list of tests. there are three files' '\n compute ' '\n storage ' '\n network ' |