projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b937f
)
Give some hint about what commands are available.
author
Carl Hetherington
<cth@carlh.net>
Fri, 17 Oct 2014 09:08:08 +0000
(10:08 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 17 Oct 2014 09:08:08 +0000
(10:08 +0100)
cdist
patch
|
blob
|
history
diff --git
a/cdist
b/cdist
index d1457c2aba94c6a68ac0e05de3ebe7b4d8ff4c97..034ccdfd5e9e9e799654940e4c8d7ab51910503b 100755
(executable)
--- a/
cdist
+++ b/
cdist
@@
-583,6
+583,13
@@
def main():
project = Project(args.project, args.directory, args.checkout)
+ commands = ['build', 'package', 'release', 'pot', 'changelog', 'manual', 'doxygen', 'latest', 'test', 'shell', 'revision']
+ if args.command not in commands:
+ e = 'command must be one of: '
+ for c in commands:
+ e += '%s ' % c
+ raise Error(e)
+
if args.command == 'build':
if args.target is None:
raise Error('you must specify -t or --target')