aboutsummaryrefslogtreecommitdiff
path: root/scripts/testpoke.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-01-10 03:16:25 +0000
committerRob Austein <sra@hactrn.net>2008-01-10 03:16:25 +0000
commitf7279fd3905b2ffc5354ed2aee9368c3f39a5f84 (patch)
treec2c8c7c9b93142fa20a61175880d8e7c53d2da02 /scripts/testpoke.py
parent8cffff56522d06eb3aae0e5f665f51b328c06210 (diff)
Proofreading fixes from Randy (thanks!)
svn path=/docs/OPERATION; revision=1467
Diffstat (limited to 'scripts/testpoke.py')
-rw-r--r--scripts/testpoke.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/testpoke.py b/scripts/testpoke.py
index 1af03a72..1a35c08d 100644
--- a/scripts/testpoke.py
+++ b/scripts/testpoke.py
@@ -5,9 +5,11 @@ Trivial RPKI up-down protocol client, for testing.
Configuration file is YAML to be compatable with APNIC rpki_poke.pl tool.
-Usage: python testpoke.py [ { -c | --config } configfile ] [ { -r | --request } requestname ] [ { -h | --help } ]
+Usage: python testpoke.py [ { -y | --yaml } configfile ]
+ [ { -r | --request } requestname ]
+ [ { -h | --help } ]
-Default configuration file is testpoke.yaml, override with --config option.
+Default configuration file is testpoke.yaml, override with --yaml option.
"""
import traceback, os, time, getopt, sys, lxml, yaml
@@ -25,11 +27,11 @@ def usage(code):
yaml_file = "testpoke.yaml"
yaml_cmd = None
-opts,argv = getopt.getopt(sys.argv[1:], "c:r:h?", ["config=", "request=", "help"])
+opts,argv = getopt.getopt(sys.argv[1:], "y:r:h?", ["yaml=", "request=", "help"])
for o,a in opts:
if o in ("-h", "--help", "-?"):
usage(0)
- elif o in ("-c", "--config"):
+ elif o in ("-y", "--yaml"):
yaml_file = a
elif o in ("-r", "--request"):
yaml_cmd = a