diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-04-30 07:11:59 -0700 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-05-03 23:59:44 -0700 |
commit | c29b94608c9f172f801a1dc1e6ef221d5bd61819 (patch) | |
tree | 8ab0eac9d2dfce443bf853853c3f9d3bc1837fda /test/mocks/mass-pnf-sim/mass-pnf-sim.py | |
parent | d73a9bfee196a12161f6c1ae64d4ca97e9019c71 (diff) |
Rephrase the argparse arguments help messages
Show usage if no option provided.
Change-Id: I1ed01464f4b689e6b716887e7719e8de6c0f1e42
Issue-ID: INT-1577
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/mocks/mass-pnf-sim/mass-pnf-sim.py')
-rwxr-xr-x | test/mocks/mass-pnf-sim/mass-pnf-sim.py | 74 |
1 files changed, 13 insertions, 61 deletions
diff --git a/test/mocks/mass-pnf-sim/mass-pnf-sim.py b/test/mocks/mass-pnf-sim/mass-pnf-sim.py index 98b66f28d..c331d24bb 100755 --- a/test/mocks/mass-pnf-sim/mass-pnf-sim.py +++ b/test/mocks/mass-pnf-sim/mass-pnf-sim.py @@ -6,67 +6,18 @@ import ipaddress import time parser = argparse.ArgumentParser() -parser.add_argument( - '--bootstrap', - help='Bootstrapping the system', -) - -parser.add_argument( - '--trigger', - help='Trigger one single VES event from each simulator', -) - - -parser.add_argument( - '--triggerstart', - help='Trigger only a subset of the simulators (note --triggerend)', -) - -parser.add_argument( - '--triggerend', - help='Last instance to trigger', -) - -parser.add_argument( - '--urlves', - help='URL of the VES collector', -) - -parser.add_argument( - '--ipfileserver', - help='Visible IP of the file server (SFTP/FTPS) to be included in the VES event', -) - -parser.add_argument( - '--typefileserver', - help='Type of the file server (SFTP/FTPS) to be included in the VES event', -) - -parser.add_argument( - '--ipstart', - help='IP address range beginning', -) - -parser.add_argument( - '--clean', - action='store_true', - help='Cleaning work-dirs', -) - -parser.add_argument( - '--start', - help='Starting instances', -) - -parser.add_argument( - '--status', - help='Status', -) - -parser.add_argument( - '--stop', - help='Stopping instances', -) +parser.add_argument('--bootstrap', help='Bootstrap the system') +parser.add_argument('--trigger', help='Trigger one single VES event from each simulator') +parser.add_argument('--triggerstart', help='Trigger only a subset of the simulators (note --triggerend)') +parser.add_argument('--triggerend', help='Last instance to trigger') +parser.add_argument('--urlves', help='URL of the VES collector') +parser.add_argument('--ipfileserver', help='Visible IP of the file server (SFTP/FTPS) to be included in the VES event') +parser.add_argument('--typefileserver', help='Type of the file server (SFTP/FTPS) to be included in the VES event') +parser.add_argument('--ipstart', help='IP address range beginning') +parser.add_argument('--clean', action='store_true', help='Clean work-dirs') +parser.add_argument('--start', help='Start instances') +parser.add_argument('--status', help='Status') +parser.add_argument('--stop', help='Stop instances') args = parser.parse_args() @@ -218,4 +169,5 @@ if args.triggerstart and args.triggerend: print('Status:', completed.stdout) else: print("No instruction was defined") + parser.print_usage() sys.exit() |