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
This is a weird case because there is a global --resolver argument and a stack init subcommand-specific --resolver option. Due to this ambiguity, optparse-applicative would select differently depending on the position of the argument. Now I've made a change so that the global --resolver is disabled if it comes after stack init so there is no longer ambiguity and the error is displayed with either ordering.
Now that there is no local --resolver option for stack init we can allow the
global option to be used in subcommand context.
This was disabled by the fix for commercialhaskell#1531. I have reverted the init specific fix for
that but kept the overall mechanism for any future use.
All of the following behave in the same way. Perhaps it silently ignores whatever follows
--solver
and parses as a valid option.But if I change the order it spits out an error message:
Though it still does not say what's wrong with it. I found #601 and #1461 raised about this already.
The text was updated successfully, but these errors were encountered: