Author: damoxc

Revision: 6020

Log:
        use metavar to change the output of --help by optparse

Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog   2009-12-13 21:46:55 UTC (rev 6019)
+++ branches/1.2_RC/ChangeLog   2009-12-13 21:49:10 UTC (rev 6020)
@@ -39,6 +39,7 @@
 ==== Core ====
        * Fix the upload_plugin rpc method (was still using XML-RPC stuff)
        * Fix possible exception when upgrading from a 0.5 state file
+       * Use metavar to modify the help output by optparse.
 
 === Deluge 1.2.0_rc4 (24 November 2009) ===
 ==== Core ====

Modified: branches/1.2_RC/deluge/main.py
===================================================================
--- branches/1.2_RC/deluge/main.py      2009-12-13 21:46:55 UTC (rev 6019)
+++ branches/1.2_RC/deluge/main.py      2009-12-13 21:49:10 UTC (rev 6020)
@@ -135,11 +135,11 @@
         help="Port daemon will listen on", action="store", type="int")
     parser.add_option("-i", "--interface", dest="interface",
         help="Interface daemon will listen for bittorrent connections on, \
-this should be an IP address",
+this should be an IP address", metavar="IFACE",
         action="store", type="str")
     parser.add_option("-u", "--ui-interface", dest="ui_interface",
         help="Interface daemon will listen for UI connections on, this should 
be\
- an IP address", action="store", type="str")
+ an IP address", metavar="IFACE", action="store", type="str")
     parser.add_option("-d", "--do-not-daemonize", dest="donot",
         help="Do not daemonize", action="store_true", default=False)
     parser.add_option("-c", "--config", dest="config",

Modified: trunk/deluge/main.py
===================================================================
--- trunk/deluge/main.py        2009-12-13 21:46:55 UTC (rev 6019)
+++ trunk/deluge/main.py        2009-12-13 21:49:10 UTC (rev 6020)
@@ -135,11 +135,11 @@
         help="Port daemon will listen on", action="store", type="int")
     parser.add_option("-i", "--interface", dest="interface",
         help="Interface daemon will listen for bittorrent connections on, \
-this should be an IP address",
+this should be an IP address", metavar="IFACE",
         action="store", type="str")
     parser.add_option("-u", "--ui-interface", dest="ui_interface",
         help="Interface daemon will listen for UI connections on, this should 
be\
- an IP address", action="store", type="str")
+ an IP address", metavar="IFACE", action="store", type="str")
     parser.add_option("-d", "--do-not-daemonize", dest="donot",
         help="Do not daemonize", action="store_true", default=False)
     parser.add_option("-c", "--config", dest="config",


--

You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.


Reply via email to