Skip to content
Snippets Groups Projects
Verified Commit 5ede4aef authored by Duncan Macleod's avatar Duncan Macleod Committed by Duncan Macleod
Browse files

use choices to restrict -A/--api

also documents what APIs are supported in `--help`
parent 264c2b23
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !88. Comments created here will be created in the context of that merge request.
......@@ -25,9 +25,9 @@ import igwn_segments as segments
from . import (
__version__,
api,
ui,
)
from .api import DEFAULT_API
from .io import (
format_cache,
lal_cache,
......@@ -232,7 +232,8 @@ def command_line():
sargs.add_argument(
"-A",
"--api",
default=DEFAULT_API,
default=api.DEFAULT_API,
choices=api.APIS,
help="API version to use",
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment