summaryrefslogtreecommitdiff
path: root/cmdline/apt-mark
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline/apt-mark')
-rwxr-xr-xcmdline/apt-mark4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmdline/apt-mark b/cmdline/apt-mark
index 0e73dda78..18552177c 100755
--- a/cmdline/apt-mark
+++ b/cmdline/apt-mark
@@ -76,6 +76,10 @@ if __name__ == "__main__":
help="print verbose status messages to stdout")
(options, args) = parser.parse_args()
+ if not args:
+ parser.print_help()
+ sys.exit(1)
+
# get the state-file
if not options.filename:
STATE_FILE = apt_pkg.config.find_dir("Dir::State") + "extended_states"