|
20 | 20 | parser.add_option("-s", "--server", dest="server",
|
21 | 21 | action="store",
|
22 | 22 | default = config_manager.server_address,
|
23 |
| - help="IRC server address, default ") |
| 23 | + help="IRC server address, default %s" % config_manager.server_address) |
24 | 24 | parser.add_option("-p", "--port", dest="port",
|
25 | 25 | action="store",
|
26 | 26 | type="int",
|
27 | 27 | default = config_manager.server_port,
|
28 |
| - help="Server port, default 6667") |
| 28 | + help="Server port, default %s" % config_manager.server_port) |
29 | 29 | parser.add_option("-c", "--channel", dest="channel",
|
30 | 30 | action="store",
|
31 | 31 | type="string",
|
32 | 32 | default = config_manager.channel,
|
33 |
| - help="Channel name, default ") |
| 33 | + help="Channel name, default %s" % config_manager.channel) |
34 | 34 | parser.add_option("-n", "--nick", dest="nick",
|
35 | 35 | action="store",
|
36 | 36 | default = config_manager.bot_nick,
|
37 |
| - help="Bot nickname") |
| 37 | + help="Bot nickname %s" % config_manager.bot_nick) |
| 38 | + # TODO (sentenza) use the config manager class |
38 | 39 | parser.add_option("-v", "--verbose", dest="verbose",
|
39 | 40 | action="store_true",
|
40 |
| - help="Make pyircbot loudy") |
| 41 | + help="Print a lot of stuff...") |
41 | 42 | options, args = parser.parse_args()
|
42 | 43 |
|
43 | 44 | # TODO (sentenza) Check the possibility of writing the config file via optparse args
|
|
0 commit comments