diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 45f598219d..56a9011e94 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -514,6 +514,13 @@ (define (fail) (leave (_ "wrong number of arguments for action '~a'~%") action)) + (unless action + (format (current-error-port) + (_ "guix system: missing command name~%")) + (format (current-error-port) + (_ "Try 'guix system --help' for more information.~%")) + (exit 1)) + (case action ((build vm vm-image disk-image reconfigure) (unless (= count 1)