-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SubCommand values from app.config #92
Comments
This I could use. Another workaround: let maybeSubcommand (argv: string[]): string[] =
let found = ConfigurationManager.AppSettings.["subcommand"]
if isNull found then argv else
let subCmdArgv = ConfigurationManager.AppSettings.[found].Split([| ' ' |], StringSplitOptions.RemoveEmptyEntries)
[| yield found; yield! subCmdArgv; yield! argv |] |
@haf How does this workaround work? |
It uses |
I see, thank you. |
Wondering if this should be closed? Ideally, to my mind, a long-lived issue should reflect either:
For me, this falls between the two stools:
I'd love to get to the point where the impetus of #191 lets us get to a shorter issues list with up-for-grabs and/or good-first-issue tags can go on things and we start working in smaller chunks collectively rather than remain in stasis. i.e. a vague issue like this might make sense if an Eirik was eventually going to resolve all the forces, but for now it's just a feature idea that makes it harder for the average newcomer to traverse the issues list to get an idea of
@btrepp would you agree with closing the issue and waiting for it to resurface/be re-opened if this re-arises? |
Closing pending this becoming actionable. Zero objections to it being re-opened when it's more focused, but I'm having trouble bucketing it as it stands |
Description
What is the syntax for specifying values /arguments for subcommands in the app.config file?.
It may not be supported for subcommands, but I can't concretely find this in the documentation.
Repro steps
Expected behavior
When running
app.exe command
nested would be either 'hello' 'hello2' or 'hello'3Actual behavior
Argu reports that nested was not provided
Known workarounds
Put all arguments into MainArg rather than scoped to the subcommand
Related information
The text was updated successfully, but these errors were encountered: