Skip to content

Commit 32573fe

Browse files
committed
Add short-notation for some options
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent edc6cd2 commit 32573fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frequenz/client/dispatch/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ async def list_(ctx: click.Context, /, **filters: Any) -> None:
102102
@click.argument("start-time", required=True, type=FuzzyDateTime())
103103
@click.argument("duration", required=True, type=FuzzyTimeDelta())
104104
@click.argument("selector", required=True, type=SelectorParamType())
105-
@click.option("--active", type=bool, default=True)
106-
@click.option("--dry-run", type=bool, default=False)
105+
@click.option("--active", "-a", type=bool, default=True)
106+
@click.option("--dry-run", "-d", type=bool, default=False)
107107
@click.option("--payload", type=str, help="JSON payload for the dispatch")
108108
@click.option("--recurrence", type=str, help="Recurrence rule (see documentation)")
109109
@click.pass_context

0 commit comments

Comments
 (0)