]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-mark
merge from the mvo branch
[apt.git] / cmdline / apt-mark
index 0e73dda7863c72cdaa4dd8b542c8c10ee13b55e7..31383d9875be6b07c3b19036f2012d72758b8c4a 100755 (executable)
@@ -82,6 +82,9 @@ if __name__ == "__main__":
     else:
         STATE_FILE=options.filename
 
+    if len(args) == 0:
+        parser.error("first argument must be 'markauto', 'unmarkauto' or 'showauto'")
+
     if args[0] == "showauto":
         show_automatic(STATE_FILE)
     else: