From: Richard Hartmann Date: Tue, 3 Sep 2013 22:42:44 +0000 (+0200) Subject: dgit*: Implement `dgit help` X-Git-Tag: debian/0.15~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=826d944a64972ded735a10eb0b11fd69e76fefbf dgit*: Implement `dgit help` --- diff --git a/dgit b/dgit index 98fd04d1..7be8e308 100755 --- a/dgit +++ b/dgit @@ -230,7 +230,7 @@ sub badusage { exit 8; } -sub helponly () { +sub cmd_help () { print $helpmsg or die $!; exit 0; } @@ -1211,7 +1211,7 @@ sub parseopts () { } elsif (m/^--no-sign$/) { $sign=0; } elsif (m/^--help$/) { - helponly(); + cmd_help(); } elsif (m/^--new$/) { $new_package=1; } elsif (m/^--(\w+)=(.*)/s && @@ -1241,7 +1241,7 @@ sub parseopts () { if (s/^-n/-/) { $dryrun=1; } elsif (s/^-h/-/) { - helponly(); + cmd_help(); } elsif (s/^-D/-/) { open DEBUG, ">&STDERR" or die $!; $debug++; diff --git a/dgit.1 b/dgit.1 index 5c5a55e3..95923d38 100644 --- a/dgit.1 +++ b/dgit.1 @@ -102,6 +102,9 @@ and Tagging, signing and actually uploading should be left to dgit push. .TP +.B dgit help +Print a usage summary. +.TP \fBdgit sbuild\fR ... Constructs the source package, uses .B sbuild