From bcf81f8b9eca040a13c44f53f51bd90fe033b9b4 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 9 Oct 2001 23:36:25 +0000 Subject: [PATCH] Spit out command help if roundup-admin command doesn't get an argument. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@282 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup-admin | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roundup-admin b/roundup-admin index 85eee36..4267f43 100755 --- a/roundup-admin +++ b/roundup-admin @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup-admin,v 1.22 2001-10-09 07:25:59 richard Exp $ +# $Id: roundup-admin,v 1.23 2001-10-09 23:36:25 richard Exp $ import sys if int(sys.version[0]) < 2: @@ -426,6 +426,10 @@ def main(): instance = roundup.instance.open(instance_home) db = instance.open('admin') + if len(args) < 2: + print function.__doc__ + return 1 + # do the command try: return function(db, args[1:]) @@ -440,6 +444,10 @@ if __name__ == '__main__': # # $Log: not supported by cvs2svn $ +# Revision 1.22 2001/10/09 07:25:59 richard +# Added the Password property type. See "pydoc roundup.password" for +# implementation details. Have updated some of the documentation too. +# # Revision 1.21 2001/10/05 02:23:24 richard # . roundup-admin create now prompts for property info if none is supplied # on the command-line. -- 2.30.2