summaryrefslogtreecommitdiff
path: root/cmdline/apt-mark
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline/apt-mark')
-rwxr-xr-xcmdline/apt-mark3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmdline/apt-mark b/cmdline/apt-mark
index 2326ece38..466a56f27 100755
--- a/cmdline/apt-mark
+++ b/cmdline/apt-mark
@@ -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: