git-import-dscs: Fix --debsnap doc and option error handling
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 18 Jan 2011 01:17:56 +0000 (19:17 -0600)
committerGuido Günther <agx@sigxcpu.org>
Tue, 18 Jan 2011 08:24:06 +0000 (09:24 +0100)
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Closes: #610376

docs/manpages/git-import-dscs.sgml
git-import-dscs

index b31f4ac..f14a433 100644 (file)
@@ -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>
index 6571eb0..369d7f7 100755 (executable)
@@ -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: