Applied Terence's patch for fixing dgetlp argument error and man page update.

This commit is contained in:
Jonathan Davies 2009-02-01 13:59:42 +00:00
parent 14ebb357cc
commit 53174fa9aa
2 changed files with 18 additions and 11 deletions

2
dgetlp
View File

@ -243,6 +243,8 @@ if __name__ == "__main__":
default=False, help="Never print any output") default=False, help="Never print any output")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
if len(args) != 1:
parser.error("Missing URL")
Debug = options.debug Debug = options.debug
Verbose = options.verbose Verbose = options.verbose
Quiet = options.quiet Quiet = options.quiet

View File

@ -4,30 +4,35 @@
dgetlp \- simulate ``dget'' behaviour for files hosted at librarian.launchpad.net dgetlp \- simulate ``dget'' behaviour for files hosted at librarian.launchpad.net
.SH SYNOPSIS .SH SYNOPSIS
.B dgetlp \fR[\fB\-d\fR] <\fBLaunchpad DSC URL\fR> .B dgetlp [\fB\-d\fP|\fB(\fB\-v\fP|\fB\-q\fP)\fP] <\fBLaunchpad DSC URL\fP>
.SH DESCRIPTION .SH DESCRIPTION
\fBdgetlp\fR downloads and optionally extracts the <\fBLaunchpad DSC URL\fR> from Launchpad. \fBdgetlp\fR simulates dget behaviour by downloading and extracting the <\fBLaunchpad DSC URL\fP> from the Launchpad Librarian.
.SH OPTIONS .SH OPTIONS
Listed below are the command line options for dgetlp: Listed below are the command line options for dgetlp:
.TP .TP
.B \-d .B \-h, \-\-help
Download the .dsc file and display the commands that would be run otherwise. show this help message and exit.
.TP
.B \-d, \-\-debug
Enable debugging.
.TP
.B \-v, \-\-verbose
Enable verbose output.
.TP
.B \-q, \-\-quiet
Never print any output.
.TP .TP
.B <Launchpad DSC URL> .B <Launchpad DSC URL>
This is the source package that you would like to be downloaded from Launchpad. This is the source package that you would like to be downloaded from the Launchpad Librarian.
.SH ENVIRONMENT VARIABLES
.TP
DIST
Specifies the default target.
.SH EXAMPLE .SH EXAMPLE
.B dgetlp http://launchpadlibrarian.net/10348157/coreutils_5.97-5.4ubuntu1.dsc .B dgetlp http://launchpadlibrarian.net/10348157/coreutils_5.97-5.4ubuntu1.dsc
.SH AUTHOR .SH AUTHOR
\fBdgetlp\fR was written by Terence Simpson <tsimpson@ubuntu.com> and \fBdgetlp\fR was written by Terence Simpson <tsimpson@ubuntu.com> and
modified by Siegfried-A. Gevatter <rainct@ubuntu.com>. modified by Siegfried-A. Gevatter <rainct@ubuntu.com>. The python rewrite
was written by Terence Simpson <tsimpson@ubuntu.com> based off the original.
This man page was written by Ryan Kavanagh <ryanakca@kubuntu.org>. This man page was written by Ryan Kavanagh <ryanakca@kubuntu.org>.
Both are released under the GNU General Public License, version 2 or later. Both are released under the GNU General Public License, version 2 or later.