-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consistent '--*-options' options #652
Comments
+1 I generally agree with everything proposed here. On Tuesday, July 21, 2015, Emanuel Borsboom notifications@github.com
-- Dan Burton |
RyanGIScott just mentioned in #haskell-stack that he'd like a way to pass options to |
Lets make sure this handles |
With Stack 2.15.1, the state of affairs is:
There is also:
|
Currently there are a few different conventions in use for stack options that specify options to pass to external programs. These should be made consistent, preferably sharing an optparse-applicative Parser between them. I'm thinking they should all allow two different ways:
--*-option
: pass a single argument, which may contain spaces.--*-options
: pass multiple space-separated arguments (parsed with argsParser)It should be possible to pass both of these multiple times, in which case the options are concatenated in the order given.
In some cases, we also specify options in YAML configuration files. The configuration field should be named
*-options
, and should contain a YAML sequence. Sequences are concatenated when cascading configuration files (and any additional options from the command-line are concatenated after those from the configuration file).(motivated by #601)
The text was updated successfully, but these errors were encountered: