diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-03-12 10:13:44 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-03-12 10:13:44 +0100 |
commit | eefacd4c6653485b3da8dc267a8068207398464b (patch) | |
tree | 2b0e1ef79bea418c8ac0c62a1958f457637ddbf3 /cmdline | |
parent | 4d7ac88c6827fab1e25238415ed0ebdf7d7f5404 (diff) |
* cmdline/apt-mark:
- show error on incorrect aguments (LP: #517917), thanks to
Torsten Spindler
Diffstat (limited to 'cmdline')
-rwxr-xr-x | cmdline/apt-mark | 3 |
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: |