aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-01-17 19:17:56 -0600
committerGuido Günther <agx@sigxcpu.org>2011-01-18 09:24:06 +0100
commitf2f03b79db00f04e5fe2f3db0307eda419373ec8 (patch)
treeff320a84c85bbbd9e9e6d33dd73f01f9d40e8355
parentb7136f34e36fa1f8d7bfd8f42a1de7d97d1dc763 (diff)
git-import-dscs: Fix --debsnap doc and option error handling
Signed-off-by: Guido Günther <agx@sigxcpu.org> Closes: #610376
-rw-r--r--docs/manpages/git-import-dscs.sgml1
-rwxr-xr-xgit-import-dscs3
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/manpages/git-import-dscs.sgml b/docs/manpages/git-import-dscs.sgml
index b31f4ac..f14a433 100644
--- a/docs/manpages/git-import-dscs.sgml
+++ b/docs/manpages/git-import-dscs.sgml
@@ -32,6 +32,7 @@
&git-import-dscs;
<arg choice="req">--debsnap</arg>
<arg><option>git-import-dsc options</option></arg>
+ <arg choice="req"><replaceable>package</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
diff --git a/git-import-dscs b/git-import-dscs
index 6571eb0..369d7f7 100755
--- a/git-import-dscs
+++ b/git-import-dscs
@@ -90,6 +90,9 @@ def main(argv):
if '--debsnap' in import_args:
use_debsnap = True
import_args.remove('--debsnap')
+ if import_args == []:
+ print_help()
+ raise GbpError
pkg = import_args[-1]
import_args = import_args[:-1]
else: