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

feat: Add default_short=False and default_long=False options to command for ease of definining option-heavy commands. #110

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

DanCardin
Copy link
Owner

i.e.

    @cappa.command(default_long=True)
    class Command:
        foo: int = 4
        bar: int = 5

results in --foo and --bar rather than FOO BAR positional arguments

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (987a8eb) to head (9bfbdf9).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #110   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         2006      2012    +6     
  Branches       440       442    +2     
=========================================
+ Hits          2006      2012    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…ommand for ease of definining option-heavy commands.
@DanCardin DanCardin merged commit cd24bfc into main Mar 27, 2024
13 checks passed
@DanCardin DanCardin deleted the dc/default_long_short branch March 27, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant