You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Not really a "bug" but more a DX issue, but thought I'd log it here in case there is interest in a PR.
In local dev testing we have a bash script that handles calling the oclif application from the top level of a monorepo (to avoid navigating down each time it's required).
@prescience-data I believe this is out of scope for oclif as it seems unique to the script you're using to execute the cli. I'm going to close this for now but please feel free to re-open if you think there's something that I'm missing here. Thanks!
Describe the bug
Not really a "bug" but more a DX issue, but thought I'd log it here in case there is interest in a PR.
In local dev testing we have a bash script that handles calling the
oclif
application from the top level of a monorepo (to avoid navigating down each time it's required).For
shellcheck SC2086
theargs
are wrapped in double quotes.Unfortunately, this triggers an
UnexpectedArgsError
when zero or > 1 args or flags are provided as theParser
sees them all as a single block.To Reproduce
Steps to reproduce the behaviour:
--foo
and--bar
that also callsthis.parse()
../run
../run --foo
./run
(no args) or./run --foo --bar=baz
(multiple args)UnexpectedArgsError
on""
❌Expected behaviour
Would be amazing if the parser step here (or it's parent) could unwrap any double quotes from around args before parsing.
Environment:
Ubuntu 22.04 LTS
bash
The text was updated successfully, but these errors were encountered: