scripts: Don't trigger option hints for short options.
authorLudovic Courtès <ludo@gnu.org>
Mon, 22 Feb 2021 22:38:46 +0000 (23:38 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 22 Feb 2021 22:42:08 +0000 (23:42 +0100)
commit11f11d7ecb817d1421f8b5340bcced59396d8708
treefc9f0be71e34ca604272cca72de010e3d33fb190
parente8fc373900cb3c1ee14db7a88ea6efbfdc810269
scripts: Don't trigger option hints for short options.

Previously, 'guix install foo -r bar' would crash with a backtrace
because NAME would be #\r (a character instead of a string).

* guix/scripts.scm (parse-command-line)[parse-options-from]: Call
'option-hint' only when NAME is a string.
guix/scripts.scm