elvish/pkg/elvdoc
Qi Xiao 5fae5b29b6 pkg/elvdoc: Fix the handling of options with spaces in the value.
Instead of using strings.Fields, use the actual Elvish parser to retrieve
options and arguments.

Among probably others, this fixes the elvdoc of "echo", whose usage previously
read (note the bogus $ in the default value of &sep):

echo &sep=' $' $value...
2023-01-02 03:00:24 +00:00
..
elvdoc_test.go pkg/elvdoc: Fix the handling of options with spaces in the value. 2023-01-02 03:00:24 +00:00
elvdoc.go pkg/elvdoc: Fix the handling of options with spaces in the value. 2023-01-02 03:00:24 +00:00