From f7279fd3905b2ffc5354ed2aee9368c3f39a5f84 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 10 Jan 2008 03:16:25 +0000 Subject: Proofreading fixes from Randy (thanks!) svn path=/docs/OPERATION; revision=1467 --- scripts/testpoke.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts/testpoke.py') 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 -- cgit v1.2.3