Skip to content

Commit

Permalink
Add default values to CLI callback
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Sep 6, 2023
1 parent 30479a9 commit e887a73
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions jupyverse_api/jupyverse_api/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pkg_resources
from typing import List
from typing import List, Tuple

import rich_click as click
from asphalt.core.cli import run
Expand Down Expand Up @@ -45,12 +45,12 @@
help="Disable plugin.",
)
def main(
open_browser: bool,
host: str,
port: int,
set_: List[str],
disable: List[str],
allow_origin: List[str],
open_browser: bool = False,
host: str = "127.0.0.1",
port: int = 8000,
set_: Tuple[str] = (),
disable: Tuple[str] = (),
allow_origin: Tuple[str] = (),
) -> None:
set_ = list(set_)
for i, s in enumerate(set_):
Expand Down

0 comments on commit e887a73

Please sign in to comment.