chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
933e414
)
dgit*: Implement `dgit help`
author
Richard Hartmann
<richih@debian.org>
Tue, 3 Sep 2013 22:42:44 +0000
(
00:42
+0200)
committer
Richard Hartmann
<richih@debian.org>
Tue, 3 Sep 2013 22:42:44 +0000
(
00:42
+0200)
dgit
patch
|
blob
|
history
dgit.1
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index 98fd04d17e1fa1940e38fa0f3cd720ea790e4484..7be8e30846a6f2d927f1db52154baf67e7168c7e 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-230,7
+230,7
@@
sub badusage {
exit 8;
}
exit 8;
}
-sub
helponly
() {
+sub
cmd_help
() {
print $helpmsg or die $!;
exit 0;
}
print $helpmsg or die $!;
exit 0;
}
@@
-1211,7
+1211,7
@@
sub parseopts () {
} elsif (m/^--no-sign$/) {
$sign=0;
} elsif (m/^--help$/) {
} elsif (m/^--no-sign$/) {
$sign=0;
} elsif (m/^--help$/) {
-
helponly
();
+
cmd_help
();
} elsif (m/^--new$/) {
$new_package=1;
} elsif (m/^--(\w+)=(.*)/s &&
} elsif (m/^--new$/) {
$new_package=1;
} elsif (m/^--(\w+)=(.*)/s &&
@@
-1241,7
+1241,7
@@
sub parseopts () {
if (s/^-n/-/) {
$dryrun=1;
} elsif (s/^-h/-/) {
if (s/^-n/-/) {
$dryrun=1;
} elsif (s/^-h/-/) {
-
helponly
();
+
cmd_help
();
} elsif (s/^-D/-/) {
open DEBUG, ">&STDERR" or die $!;
$debug++;
} elsif (s/^-D/-/) {
open DEBUG, ">&STDERR" or die $!;
$debug++;
diff --git
a/dgit.1
b/dgit.1
index 5c5a55e34c7732749ba168637a2a3269ed61b54a..95923d38ffac03ac8114cf980c0a5367ded2a5a0 100644
(file)
--- a/
dgit.1
+++ b/
dgit.1
@@
-102,6
+102,9
@@
and
Tagging, signing and actually uploading should be left to dgit push.
.TP
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
\fBdgit sbuild\fR ...
Constructs the source package, uses
.B sbuild