]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-mark
* apt-pkg/deb/dpkgpm.cc:
[apt.git] / cmdline / apt-mark
index 2326ece38eb513a459447bc9effb5142eaddde0f..466a56f274e844073daffb4e5c21394df2088c47 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: