diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-17 10:08:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-17 10:08:08 +0100 |
| commit | 792a899eb73428f37f7dbe10a41061b8a8c53f2e (patch) | |
| tree | 1f6ff672d23ce12d98ebbbd5c32df05f2e735e44 | |
| parent | 30b937fe0e34ccd86ab27fa2b6036528296eff06 (diff) | |
Give some hint about what commands are available.
| -rwxr-xr-x | cdist | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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') |
