Merge lp:~thomir-deactivatedaccount/autopilot/trunk-add-help into lp:autopilot

Proposed by Thomi Richards
Status: Merged
Approved by: Christopher Lee
Approved revision: 342
Merged at revision: 341
Proposed branch: lp:~thomir-deactivatedaccount/autopilot/trunk-add-help
Merge into: lp:autopilot
Diff against target: 18 lines (+7/-1)
1 file modified
autopilot/__init__.py (+7/-1)
To merge this branch: bzr merge lp:~thomir-deactivatedaccount/autopilot/trunk-add-help
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Christopher Lee (community) Approve
Martin Pitt (community) Approve
Review via email: mp+187968@code.launchpad.net

Commit message

Make the default help text more useful.

Description of the change

Make the default help text more useful.

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

2 + " can be viewed by passing the '-h' flag to the commamd. For "

Please fix the "command" typo, otherwise LGTM.

review: Needs Fixing
342. By Thomi Richards

fix typo.

Revision history for this message
Martin Pitt (pitti) wrote :

Cheers!

review: Approve
Revision history for this message
Christopher Lee (veebers) wrote :

Looks good after typo fix

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'autopilot/__init__.py'
2--- autopilot/__init__.py 2013-09-18 22:22:23 +0000
3+++ autopilot/__init__.py 2013-09-27 04:18:16 +0000
4@@ -38,7 +38,13 @@
5 """Parse command-line arguments, and return an argparse arguments
6 object.
7 """
8- parser = ArgumentParser(description="Autopilot test tool.")
9+ parser = ArgumentParser(
10+ description="Autopilot test tool.",
11+ epilog="Each command (run, list, launch etc.) has additional help that"
12+ " can be viewed by passing the '-h' flag to the command. For "
13+ "example: 'autopilot run -h' displays further help for the "
14+ "'run' command."
15+ )
16 parser.add_argument('-v', '--version', action='version',
17 version=get_version_string(),
18 help="Display autopilot version and exit.")

Subscribers

People subscribed via source and target branches