-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
409 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import click | ||
from dataclass_click import dataclass_click | ||
|
||
from .deduplidog import Deduplidog | ||
|
||
|
||
class RaiseOnMissingParam(click.Command): | ||
def __call__(self, *args, **kwargs): | ||
return super(RaiseOnMissingParam, self).__call__(*args, standalone_mode=False, **kwargs) | ||
|
||
|
||
@click.command(cls=RaiseOnMissingParam) | ||
@dataclass_click(Deduplidog) | ||
def cli(dd: Deduplidog): | ||
return dd |
Oops, something went wrong.