diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-10-11 23:10:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-10-11 23:10:19 +0200 |
| commit | 8801ee04ede5b3b76bc0148748dc3852dfe2012a (patch) | |
| tree | c0471aa07099bde150f2dc70aa9c8e37e595a762 | |
| parent | 15ed53e2bbc21ce291fbe11d89afd24aee22bee2 (diff) | |
Tidy help a little.
| -rwxr-xr-x | cdist | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1067,23 +1067,23 @@ def main(): commands = { "build": "build project", - "package": "build and package project", + "package": "build and package the project", "release": "release a project using its next version number (changing wscript and tagging)", "pot": "build the project's .pot files", "manual": "build the project's manual", "doxygen": "build the project's Doxygen documentation", "latest": "print out the latest version", - "test": "run the project's unit tests", + "test": "build the project and run its unit tests", "shell": "build the project then start a shell", "checkout": "check out the project", "revision": "print the head git revision number", "dependencies" : "print details of the project's dependencies as a .dot file" } - one_of = "Command is one of:\n" + one_of = "" summary = "" for k, v in commands.items(): - one_of += "\t%s\t%s\n" % (k, v) + one_of += "\t%s%s\n" % (k.ljust(20), v) summary += k + " " parser = argparse.ArgumentParser() @@ -1148,7 +1148,6 @@ def main(): globals.dry_run = args.dry_run if not globals.command in commands: - e = 'command must be one of:\n' + one_of raise Error('command must be one of:\n%s' % one_of) if globals.command == 'build': |
