mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-16 03:45:24 -05:00
guix system: Gracefully handle incomplete commands.
Fixes <http://bugs.gnu.org/21451>. Reported by Steve Sprang <steve.sprang@gmail.com>. * guix/scripts/system.scm (guix-system)[option-arguments]: Error out when ACTION is #f.
This commit is contained in:
parent
17d8e33f31
commit
d89e0990f5
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue