Skip to content

Commit 66d41a5

Browse files
author
Richard Jones
committed
Spit out command help if roundup-admin command doesn't get an argument.
1 parent 9df73ce commit 66d41a5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

roundup-admin

Lines changed: 9 additions & 1 deletion
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: roundup-admin,v 1.22 2001-10-09 07:25:59 richard Exp $
19+
# $Id: roundup-admin,v 1.23 2001-10-09 23:36:25 richard Exp $
2020

2121
import sys
2222
if int(sys.version[0]) < 2:
@@ -426,6 +426,10 @@ def main():
426426
instance = roundup.instance.open(instance_home)
427427
db = instance.open('admin')
428428

429+
if len(args) < 2:
430+
print function.__doc__
431+
return 1
432+
429433
# do the command
430434
try:
431435
return function(db, args[1:])
@@ -440,6 +444,10 @@ if __name__ == '__main__':
440444

441445
#
442446
# $Log: not supported by cvs2svn $
447+
# Revision 1.22 2001/10/09 07:25:59 richard
448+
# Added the Password property type. See "pydoc roundup.password" for
449+
# implementation details. Have updated some of the documentation too.
450+
#
443451
# Revision 1.21 2001/10/05 02:23:24 richard
444452
# . roundup-admin create now prompts for property info if none is supplied
445453
# on the command-line.

0 commit comments

Comments
 (0)