aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-05-05 04:27:25 -0700
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-05-05 04:27:25 -0700
commit70c116f475f0aaa18ad194c132c07d999103948a (patch)
treed27d8127b5a8593ab3f991893fea527c5b626284 /test/mocks
parent32fb5abce8f6316fd08504b68d68a6e50d6fa787 (diff)
Add input opts description in usage synopsis
Change-Id: I43b1c47509afef0f25176e244ab2f6f565afbc3b Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/mocks')
-rwxr-xr-xtest/mocks/mass-pnf-sim/mass-pnf-sim.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/test/mocks/mass-pnf-sim/mass-pnf-sim.py b/test/mocks/mass-pnf-sim/mass-pnf-sim.py
index f214691b1..0ca29d007 100755
--- a/test/mocks/mass-pnf-sim/mass-pnf-sim.py
+++ b/test/mocks/mass-pnf-sim/mass-pnf-sim.py
@@ -27,20 +27,22 @@ def validate_ip(ip):
return ip_valid
parser = argparse.ArgumentParser()
-parser.add_argument('--bootstrap', help='Bootstrap the system', type=int)
-parser.add_argument('--trigger', help='Trigger one single VES event from each simulator', type=int)
-parser.add_argument('--triggerstart', help='Trigger only a subset of the simulators (note --triggerend)', type=int)
-parser.add_argument('--triggerend', help='Last instance to trigger', type=int)
-parser.add_argument('--urlves', help='URL of the VES collector', type=validate_url)
+parser.add_argument('--bootstrap', help='Bootstrap the system', type=int, metavar='COUNT')
+parser.add_argument('--trigger', help='Trigger one single VES event from each simulator', type=int,
+ metavar='COUNT')
+parser.add_argument('--triggerstart', help='Trigger only a subset of the simulators (note --triggerend)', type=int,
+ metavar='COUNT_START')
+parser.add_argument('--triggerend', help='Last instance to trigger', type=int, metavar='COUNT_END')
+parser.add_argument('--urlves', help='URL of the VES collector', type=validate_url, metavar='URL')
parser.add_argument('--ipfileserver', help='Visible IP of the file server (SFTP/FTPS) to be included in the VES event',
- type=validate_ip)
+ type=validate_ip, metavar='IP')
parser.add_argument('--typefileserver', help='Type of the file server (SFTP/FTPS) to be included in the VES event',
type=str, choices=['sftp', 'ftps'])
-parser.add_argument('--ipstart', help='IP address range beginning', type=validate_ip)
+parser.add_argument('--ipstart', help='IP address range beginning', type=validate_ip, metavar='IP')
parser.add_argument('--clean', action='store_true', help='Clean work-dirs')
-parser.add_argument('--start', help='Start instances', type=int)
-parser.add_argument('--status', help='Status', type=int)
-parser.add_argument('--stop', help='Stop instances', type=int)
+parser.add_argument('--start', help='Start instances', type=int, metavar='COUNT')
+parser.add_argument('--status', help='Status', type=int, metavar='COUNT')
+parser.add_argument('--stop', help='Stop instances', type=int, metavar='COUNT')
args = parser.parse_args()