From 8873a909720852660dce3e568b5d9bbc96d71fef Mon Sep 17 00:00:00 2001 From: grubert Date: Wed, 23 Jan 2002 07:27:19 +0000 Subject: [PATCH] . allow abbreviation of "help" in admin tool too. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@594 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + roundup/admin.py | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index a857926..c6cc5f4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,6 +14,7 @@ Feature: . you can now use the roundup-admin tool pack the database . unit tests for html templating (and re-enabled the listbox field for multilinks) + . allow abbreviation of "help" in admin tool too. Fixed: . handle attachments with no name (eg tnef) diff --git a/roundup/admin.py b/roundup/admin.py index 679315c..5ce870a 100644 --- a/roundup/admin.py +++ b/roundup/admin.py @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: admin.py,v 1.5 2002-01-21 16:33:19 rochecompaan Exp $ +# $Id: admin.py,v 1.6 2002-01-23 07:27:19 grubert Exp $ import sys, os, getpass, getopt, re, UserDict, shlex try: @@ -209,7 +209,11 @@ Command help: initopts -- init command options all -- all available help ''' - topic = args[0] + if len(args)>0: + topic = args[0] + else: + topic = 'help' + # try help_ methods if self.help.has_key(topic): @@ -1035,6 +1039,9 @@ if __name__ == '__main__': # # $Log: not supported by cvs2svn $ +# Revision 1.5 2002/01/21 16:33:19 rochecompaan +# You can now use the roundup-admin tool to pack the database +# # Revision 1.4 2002/01/14 06:51:09 richard # . #503164 ] create and passwords # -- 2.30.2