]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-mark
merged from lp:~donkult/apt/sid
[apt.git] / cmdline / apt-mark
index 18552177c7537642ed7fd7b698b4845a8f90c735..12768b7088069fa9968ead5c89148325207bb048 100755 (executable)
@@ -86,6 +86,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: