summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-17 10:08:08 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-17 10:08:08 +0100
commit792a899eb73428f37f7dbe10a41061b8a8c53f2e (patch)
tree1f6ff672d23ce12d98ebbbd5c32df05f2e735e44
parent30b937fe0e34ccd86ab27fa2b6036528296eff06 (diff)
Give some hint about what commands are available.
-rwxr-xr-xcdist7
1 files changed, 7 insertions, 0 deletions
diff --git a/cdist b/cdist
index d1457c2..034ccdf 100755
--- 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')