Skip to content

Commit 0d8f7fd

Browse files
author
Engelbert Gruber
committed
allow abbreviation of "help" in admin tool too.
1 parent 19e0f68 commit 0d8f7fd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Feature:
1414
. you can now use the roundup-admin tool pack the database
1515
. unit tests for html templating (and re-enabled the listbox field for
1616
multilinks)
17+
. allow abbreviation of "help" in admin tool too.
1718

1819
Fixed:
1920
. handle attachments with no name (eg tnef)

roundup/admin.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.5 2002-01-21 16:33:19 rochecompaan Exp $
19+
# $Id: admin.py,v 1.6 2002-01-23 07:27:19 grubert Exp $
2020

2121
import sys, os, getpass, getopt, re, UserDict, shlex
2222
try:
@@ -209,7 +209,11 @@ def do_help(self, args, nl_re=re.compile('[\r\n]'),
209209
initopts -- init command options
210210
all -- all available help
211211
'''
212-
topic = args[0]
212+
if len(args)>0:
213+
topic = args[0]
214+
else:
215+
topic = 'help'
216+
213217

214218
# try help_ methods
215219
if self.help.has_key(topic):
@@ -1035,6 +1039,9 @@ def main(self):
10351039

10361040
#
10371041
# $Log: not supported by cvs2svn $
1042+
# Revision 1.5 2002/01/21 16:33:19 rochecompaan
1043+
# You can now use the roundup-admin tool to pack the database
1044+
#
10381045
# Revision 1.4 2002/01/14 06:51:09 richard
10391046
# . #503164 ] create and passwords
10401047
#

0 commit comments

Comments
 (0)