From 3b9c00208868a75e6b77445fcd33d82536448bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 24 Jan 2013 22:00:54 +0100 Subject: guix-package: Error out when passed a non-option argument. * guix-package.in (guix-package)[parse-options]: Call `leave' when passed a non-option argument. Reported by Andreas Enge . * tests/guix-package.sh: Add test. --- tests/guix-package.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/guix-package.sh') diff --git a/tests/guix-package.sh b/tests/guix-package.sh index 603ae98d74..02ece68045 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh @@ -139,3 +139,6 @@ fi # Failed attempt to roll back. if guix-package --bootstrap --roll-back; then false; else true; fi + +# Extraneous argument. +! guix-package install foo-bar -- cgit v1.2.3