Short-opt parsing with `=`
anmonteiro opened this issue · 1 comments
anmonteiro commented
I don't know whether this is expected behavior, and I couldn't find it explained in this docs page.
Cmdliner currently parses doesn't special case =
when parsing short optional arguments. E.g. ./my_program -a=foo
will yield "=foo"
as the value for a
in my program. I expected this behavior to be consistent with the long option parsing, which would yield "foo"
e.g. for ./my_program --long-a=foo
.
dbuenzli commented
Yes that's expected. You are in the "Glued to a short name: -oa.out" (aka as POSIX convention) case of how to specify a value to an option.