From 35392e884dbce285d9f625df6f69094f9d703813 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Mon, 4 Aug 2008 18:23:13 +0100 Subject: [PATCH] Add -h, --help to pull-lp-source. Add pull-lp-source manpage. --- doc/pull-lp-source.1 | 29 +++++++++++++++++++++++++++++ pull-lp-source | 4 ++++ 2 files changed, 33 insertions(+) create mode 100644 doc/pull-lp-source.1 diff --git a/doc/pull-lp-source.1 b/doc/pull-lp-source.1 new file mode 100644 index 0000000..4595486 --- /dev/null +++ b/doc/pull-lp-source.1 @@ -0,0 +1,29 @@ +.TH PULL-LP-SOURCE "1" "4 August 2008" "ubuntu-dev-tools" +.SH NAME +pull-lp-source \- Download a source package from Launchpad +.SH SYNOPSIS +.B pull-lp-source <\fBsource package\fR> [\fItarget release\fR] + +.B pull-lp-source -h +.SH DESCRIPTION +.PP +\fBpull-lp-source\fR downloads and extracts the latest version of +<\fBsource package\fR> from Launchpad. If the optional parameter +[\fItarget release\fR] is specified, the latest version in that release +will be downloaded instead. +.SH OPTIONS +.PP +Listed below are the command line options for requestsync: +.TP +.B \-h, --help +Display a help message and exit. +.TP +.B +This is the source package that you would like to be downloaded from Launchpad. +.TP +.B [target release] +This is the release that you would like the source package to be downloaded from. +This value defaults to the current development release. +.SH AUTHOR +.PP +This manual page was written by Iain Lane diff --git a/pull-lp-source b/pull-lp-source index 2f69f9f..66abad0 100755 --- a/pull-lp-source +++ b/pull-lp-source @@ -56,6 +56,10 @@ if __name__=='__main__': args = sys.argv[1:] or [] + if args == [] or args[0] in ['-h', '--help']: + usage() + sys.exit(0) + if len(args) >= 1: package = args[0]