Skip to content

Commit

Permalink
Minor edits to CLI code
Browse files Browse the repository at this point in the history
  • Loading branch information
jlumpe committed Jul 3, 2024
1 parent a23543d commit 0a53a8f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gambit/cli/signatures.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import Optional, TextIO, List
from typing import Optional, TextIO
import sys
from pathlib import Path

import click

Expand Down Expand Up @@ -49,8 +50,8 @@ def signatures_group():
required=False,
)
@click.pass_context
def info(ctx: click.Context, file: str, json: bool, pretty: bool, ids: bool, use_db: bool):
"""Inspect GAMBIT signature files."""
def info(ctx: click.Context, file: Path, json: bool, pretty: bool, ids: bool, use_db: bool):
"""Inspect GAMBIT signature (.gs) files."""

common.check_params_group(ctx, ['file', 'use_db'], True, True)
common.check_params_group(ctx, ['ids', 'json'], True, False)
Expand Down Expand Up @@ -158,7 +159,7 @@ def info(ctx: click.Context, file: str, json: bool, pretty: bool, ids: bool, use
def create(ctx: click.Context,
listfile: Optional[TextIO],
ldir: Optional[str],
files_arg: List[str],
files_arg: list[str],
output: str,
prefix: Optional[str],
k: Optional[int],
Expand Down

0 comments on commit 0a53a8f

Please sign in to comment.