We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to have flagged enum options?
For instance, I would like to be able to combine which categories I would like to log in my tool.
command-line:
mytool -l Admin -l Status
enum used in options:
[Flags] public enum Logging: uint { None = 0, Admin = 1 << 0, Status = 1 << 1, Progress = 1 << 2, All = 0xFFFFFFFF, }
The text was updated successfully, but these errors were encountered:
You can use IEnumerable<Logging> for multiple options and use separator '|' like c#:
IEnumerable<Logging>
public class Options { [Option('l', Separator='|')] public IEnumerable<Logging> Log { get; set; } }
commandline can be:
mytool -l Admin|Status|Progress
Then Evaluate the multi log values.
Sorry, something went wrong.
@dfhwze Can you feedback if you resolved your issue.
No branches or pull requests
Is it possible to have flagged enum options?
For instance, I would like to be able to combine which categories I would like to log in my tool.
command-line:
enum used in options:
The text was updated successfully, but these errors were encountered: