Mercurial > p > roundup > code
comparison roundup-admin @ 248:96cdd8ef0581
Added some more help to roundup-admin
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 18 Sep 2001 22:58:37 +0000 |
| parents | d7d358408537 |
| children | 0ca5381a72b5 |
comparison
equal
deleted
inserted
replaced
| 247:6aae5aaeab27 | 248:96cdd8ef0581 |
|---|---|
| 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 18 # | 18 # |
| 19 # $Id: roundup-admin,v 1.17 2001-08-28 05:58:33 anthonybaxter Exp $ | 19 # $Id: roundup-admin,v 1.18 2001-09-18 22:58:37 richard Exp $ |
| 20 | 20 |
| 21 import sys | 21 import sys |
| 22 if int(sys.version[0]) < 2: | 22 if int(sys.version[0]) < 2: |
| 23 print 'Roundup requires python 2.0 or later.' | 23 print 'Roundup requires python 2.0 or later.' |
| 24 sys.exit(1) | 24 sys.exit(1) |
| 36 commands.sort() | 36 commands.sort() |
| 37 print '''%sUsage: roundup-admin [-i instance home] [-u login] [-c] <command> <arguments> | 37 print '''%sUsage: roundup-admin [-i instance home] [-u login] [-c] <command> <arguments> |
| 38 | 38 |
| 39 Commands: | 39 Commands: |
| 40 %s | 40 %s |
| 41 | |
| 42 Help: | 41 Help: |
| 43 roundup-admin -h | 42 roundup-admin -h |
| 44 roundup-admin help | 43 roundup-admin help -- this help |
| 45 -- this help | 44 roundup-admin help <command> -- command-specific help |
| 46 roundup-admin help <command> | 45 roundup-admin morehelp -- even more detailed help |
| 47 -- command-specific help | 46 Options: |
| 48 roundup-admin morehelp | 47 -i instance home -- specify the issue tracker "home directory" to administer |
| 49 -- even more detailed help | 48 -u -- the user[:password] to use for commands |
| 50 | 49 -c -- when outputting lists of data, just comma-separate them'''%( |
| 51 '''%(message, '\n '.join(commands)) | 50 message, '\n '.join(commands)) |
| 52 | 51 |
| 53 def moreusage(message=''): | 52 def moreusage(message=''): |
| 54 usage(message) | 53 usage(message) |
| 55 print ''' | 54 print ''' |
| 56 All commands (except help) require an instance specifier. This is just the path | 55 All commands (except help) require an instance specifier. This is just the path |
| 57 to the roundup instance you're working with. It may be specified in the | 56 to the roundup instance you're working with. A roundup instance is where |
| 58 environment variable ROUNDUP_INSTANCE or on the command line as "-i instance". | 57 roundup keeps the database and configuration file that defines an issue |
| 58 tracker. It may be thought of as the issue tracker's "home directory". It may | |
| 59 be specified in the environment variable ROUNDUP_INSTANCE or on the command | |
| 60 line as "-i instance". | |
| 59 | 61 |
| 60 A designator is a classname and a nodeid concatenated, eg. bug1, user10, ... | 62 A designator is a classname and a nodeid concatenated, eg. bug1, user10, ... |
| 61 | 63 |
| 62 Property values are represented as strings in command arguments and in the | 64 Property values are represented as strings in command arguments and in the |
| 63 printed results: | 65 printed results: |
| 424 if __name__ == '__main__': | 426 if __name__ == '__main__': |
| 425 sys.exit(main()) | 427 sys.exit(main()) |
| 426 | 428 |
| 427 # | 429 # |
| 428 # $Log: not supported by cvs2svn $ | 430 # $Log: not supported by cvs2svn $ |
| 431 # Revision 1.17 2001/08/28 05:58:33 anthonybaxter | |
| 432 # added missing 'import' statements. | |
| 433 # | |
| 429 # Revision 1.16 2001/08/12 06:32:36 richard | 434 # Revision 1.16 2001/08/12 06:32:36 richard |
| 430 # using isinstance(blah, Foo) now instead of isFooType | 435 # using isinstance(blah, Foo) now instead of isFooType |
| 431 # | 436 # |
| 432 # Revision 1.15 2001/08/07 00:24:42 richard | 437 # Revision 1.15 2001/08/07 00:24:42 richard |
| 433 # stupid typo | 438 # stupid typo |
