allura
Revisión | 1b80d881cfcdeaa075c22c397ea821c4bc5fda6c (tree) |
---|---|
Tiempo | 2012-04-13 04:15:24 |
Autor | Dave Brondsema <dbrondsema@geek...> |
Commiter | Dave Brondsema |
all paster commands require an ini file as the first param
@@ -17,7 +17,7 @@ log = None | ||
17 | 17 | class EmptyClass(object): pass |
18 | 18 | |
19 | 19 | class Command(command.Command): |
20 | - min_args = 0 | |
20 | + min_args = 1 | |
21 | 21 | max_args = 1 |
22 | 22 | usage = '[<ini file>]' |
23 | 23 | group_name = 'Allura' |
@@ -10,7 +10,7 @@ from allura.lib import helpers as h | ||
10 | 10 | log = logging.getLogger(__name__) |
11 | 11 | |
12 | 12 | class CreateTroveCategoriesCommand(base.Command): |
13 | - min_args=None | |
13 | + min_args=1 | |
14 | 14 | max_args=None |
15 | 15 | usage = '<ini file>' |
16 | 16 | summary = 'Remove any existing trove categories and load new ones' |
@@ -28,7 +28,7 @@ class ShowModelsCommand(base.Command): | ||
28 | 28 | print line |
29 | 29 | |
30 | 30 | class ReindexCommand(base.Command): |
31 | - min_args=0 | |
31 | + min_args=1 | |
32 | 32 | max_args=1 |
33 | 33 | usage = '<ini file>' |
34 | 34 | summary = 'Reindex and re-shortlink all artifacts' |
@@ -102,7 +102,7 @@ class ReindexCommand(base.Command): | ||
102 | 102 | base.log.info('Reindex done') |
103 | 103 | |
104 | 104 | class EnsureIndexCommand(base.Command): |
105 | - min_args=0 | |
105 | + min_args=1 | |
106 | 106 | max_args=1 |
107 | 107 | usage = '[<ini file>]' |
108 | 108 | summary = 'Run ensure_index on all mongo objects' |