Skip to content
Snippets Groups Projects
Verified Commit 0298a8cd 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 8639b38e
No related branches found
No related tags found
1 merge request!88Draft: Support multiple APIs
......@@ -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