From 53174fa9aaca7635f3b572da485ef6e5870c461d Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Sun, 1 Feb 2009 13:59:42 +0000 Subject: [PATCH] Applied Terence's patch for fixing dgetlp argument error and man page update. --- dgetlp | 2 ++ doc/dgetlp.1 | 27 ++++++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/dgetlp b/dgetlp index f8382a4..2dfaf02 100755 --- a/dgetlp +++ b/dgetlp @@ -243,6 +243,8 @@ if __name__ == "__main__": default=False, help="Never print any output") (options, args) = parser.parse_args() + if len(args) != 1: + parser.error("Missing URL") Debug = options.debug Verbose = options.verbose Quiet = options.quiet diff --git a/doc/dgetlp.1 b/doc/dgetlp.1 index d6f04de..451f968 100644 --- a/doc/dgetlp.1 +++ b/doc/dgetlp.1 @@ -4,30 +4,35 @@ dgetlp \- simulate ``dget'' behaviour for files hosted at librarian.launchpad.net .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 -\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 Listed below are the command line options for dgetlp: .TP -.B \-d -Download the .dsc file and display the commands that would be run otherwise. +.B \-h, \-\-help +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 .B -This is the source package that you would like to be downloaded from Launchpad. - -.SH ENVIRONMENT VARIABLES -.TP -DIST -Specifies the default target. +This is the source package that you would like to be downloaded from the Launchpad Librarian. .SH EXAMPLE .B dgetlp http://launchpadlibrarian.net/10348157/coreutils_5.97-5.4ubuntu1.dsc .SH AUTHOR \fBdgetlp\fR was written by Terence Simpson and -modified by Siegfried-A. Gevatter . +modified by Siegfried-A. Gevatter . The python rewrite +was written by Terence Simpson based off the original. This man page was written by Ryan Kavanagh . Both are released under the GNU General Public License, version 2 or later.