From 04062526c1031c40f6f2cde9a2d45bc499651efe Mon Sep 17 00:00:00 2001 From: Dan Wendlandt Date: Tue, 21 Jun 2011 10:13:07 -0700 Subject: [PATCH] add example to usage string for batch_config.py --- tools/batch_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/batch_config.py b/tools/batch_config.py index e6be088ed..cf70a8fb9 100644 --- a/tools/batch_config.py +++ b/tools/batch_config.py @@ -32,7 +32,11 @@ CONTENT_TYPE = "application/" + FORMAT if __name__ == "__main__": - usagestr = "Usage: %prog [OPTIONS] [args]" + usagestr = "Usage: %prog [OPTIONS] [args]\n" \ + "Example config-string: net1=instance-1,instance-2:net2=instance-3,instance-4\n" \ + "This string would create two networks: \n" \ + "'net1' would have two ports, with iface-ids instance-1 and instance-2 attached\n" \ + "'net2' would have two ports, with iface-ids instance-3 and instance-4 attached\n" parser = OptionParser(usage=usagestr) parser.add_option("-H", "--host", dest="host", type="string", default="127.0.0.1", help="ip address of api host") -- 2.45.2