Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Enum with flags that can be combined #582

Copy link
Copy link
@dfhwze

Description

@dfhwze
Issue body actions

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,
}

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.