mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
use metavar to change the output of --help by optparse
This commit is contained in:
parent
9878fced37
commit
ecca68772e
2 changed files with 3 additions and 2 deletions
|
@ -39,6 +39,7 @@
|
||||||
==== Core ====
|
==== Core ====
|
||||||
* Fix the upload_plugin rpc method (was still using XML-RPC stuff)
|
* Fix the upload_plugin rpc method (was still using XML-RPC stuff)
|
||||||
* Fix possible exception when upgrading from a 0.5 state file
|
* 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) ===
|
=== Deluge 1.2.0_rc4 (24 November 2009) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
|
|
|
@ -135,11 +135,11 @@ def start_daemon():
|
||||||
help="Port daemon will listen on", action="store", type="int")
|
help="Port daemon will listen on", action="store", type="int")
|
||||||
parser.add_option("-i", "--interface", dest="interface",
|
parser.add_option("-i", "--interface", dest="interface",
|
||||||
help="Interface daemon will listen for bittorrent connections on, \
|
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")
|
action="store", type="str")
|
||||||
parser.add_option("-u", "--ui-interface", dest="ui_interface",
|
parser.add_option("-u", "--ui-interface", dest="ui_interface",
|
||||||
help="Interface daemon will listen for UI connections on, this should be\
|
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",
|
parser.add_option("-d", "--do-not-daemonize", dest="donot",
|
||||||
help="Do not daemonize", action="store_true", default=False)
|
help="Do not daemonize", action="store_true", default=False)
|
||||||
parser.add_option("-c", "--config", dest="config",
|
parser.add_option("-c", "--config", dest="config",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue