Skip to content

Commit

Permalink
-v
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 18, 2024
1 parent 825bee7 commit 573dc63
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions petabtests/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ def clear() -> None:

def _cli_create():
"""`petabtests_create` entry point."""
# initialize logging
logging.basicConfig(level=logging.INFO)
import argparse

parser = argparse.ArgumentParser(description="Create PEtab test cases.")
parser.add_argument(
"--verbose", "-v", action="store_true", help="Verbose output."
)
args = parser.parse_args()

if args.verbose:
logging.basicConfig(level=logging.INFO)

create_all()

0 comments on commit 573dc63

Please sign in to comment.