Skip to content

Commit d0a5a31

Browse files
author
Richard Jones
committed
init help now lists templates and backends
1 parent 7794f1e commit d0a5a31

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

roundup-admin

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /usr/bin/python
2-
# $Id: roundup-admin,v 1.8 2001-07-30 02:37:07 richard Exp $
2+
# $Id: roundup-admin,v 1.9 2001-07-30 03:52:55 richard Exp $
33

44
import sys
55
if int(sys.version[0]) < 2:
@@ -303,6 +303,14 @@ def figureCommands():
303303
d[k[3:]] = v
304304
return d
305305

306+
def printInitOptions():
307+
import roundup.templates
308+
templates = roundup.templates.listTemplates()
309+
print 'Templates:', ', '.join(templates)
310+
import roundup.backends
311+
backends = roundup.backends.__all__
312+
print 'Back ends:', ', '.join(backends)
313+
306314
def main():
307315
opts, args = getopt.getopt(sys.argv[1:], 'i:u:hc')
308316

@@ -343,6 +351,8 @@ def main():
343351
usage('no such command "%s"'%args[1])
344352
return 1
345353
print command.__doc__
354+
if args[1] == 'init':
355+
printInitOptions()
346356
return 0
347357
usage()
348358
return 0
@@ -394,6 +404,9 @@ if __name__ == '__main__':
394404

395405
#
396406
# $Log: not supported by cvs2svn $
407+
# Revision 1.8 2001/07/30 02:37:07 richard
408+
# Freshen is really broken. Commented out.
409+
#
397410
# Revision 1.7 2001/07/30 01:28:46 richard
398411
# Bugfixes
399412
#

0 commit comments

Comments
 (0)