Skip to content
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

Add Option Groups to parser #112

Closed
epi052 opened this issue Nov 5, 2020 · 4 comments · Fixed by #463
Closed

Add Option Groups to parser #112

epi052 opened this issue Nov 5, 2020 · 4 comments · Fixed by #463
Assignees
Labels
Milestone

Comments

@epi052
Copy link
Owner

epi052 commented Nov 5, 2020

I'd like to have groups of options visually ... grouped together. Maybe not exactly these groups, but something along these lines. Currently clap doesn't offer this functionality but will in version 3.0.

Once clap 3.0 is released, this ticket can be completed.

Filter Options:
    -S, --filter-size <SIZE>...             Filter out messages of a particular size (ex: -S 5120 -S 4927,1970)
    -C, --filter-status <STATUS_CODE>...    Filter out status codes (deny list) (ex: -C 200 -C 401)
...

 Include Options:
    -s, --status-codes <STATUS_CODE>...     Status Codes to include (allow list) (default: 200 204 301 302 307 308 401)
...

Scan Options:
...

Client Options:
... 
@epi052 epi052 added enhancement New feature or request nitpickery blocked labels Nov 5, 2020
@stale
Copy link

stale bot commented Dec 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 12, 2020
@epi052 epi052 added pinned and removed stale labels Dec 12, 2020
@epi052 epi052 removed the blocked label Jan 10, 2022
@epi052 epi052 self-assigned this Jan 10, 2022
@epi052
Copy link
Owner Author

epi052 commented Jan 10, 2022

ric flair meme

@epi052
Copy link
Owner Author

epi052 commented Jan 10, 2022

nvm 😢 still blocked due to the lack of gen_completions in 3.0.

ref: clap-rs/clap#3166

@epi052
Copy link
Owner Author

epi052 commented Jan 13, 2022

i lied, clap_complete is now the way

@epi052 epi052 added this to the 2.50 milestone Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant