Skip to content

Commit

Permalink
Uncomment unusable CLI options
Browse files Browse the repository at this point in the history
Uncommenting `--log-level` and `--debug`.
They should be uncommented and used when support for them are available,
or eventually removed if it's determined they should not be implemented.
  • Loading branch information
CasperWA committed Aug 30, 2021
1 parent 4933c3c commit 4a29d8e
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions dic2owl/dic2owl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
ontology-generation tool for CIF `.dic`-files.
"""
import argparse
import logging

# import logging
from pathlib import Path


LOGGING_LEVELS = [
logging.getLevelName(level).lower() for level in range(0, 51, 10)
]
# LOGGING_LEVELS = [
# logging.getLevelName(level).lower() for level in range(0, 51, 10)
# ]


def main(argv: list = None) -> None:
Expand All @@ -33,18 +34,18 @@ def main(argv: list = None) -> None:
help="Show the version and exit.",
version=f"dic2owl version {__version__}",
)
parser.add_argument(
"--log-level",
type=str,
help="Set the stdout log-level (verbosity).",
choices=LOGGING_LEVELS,
default="info",
)
parser.add_argument(
"--debug",
action="store_true",
help="Overrule log-level option, setting it to 'debug'.",
)
# parser.add_argument(
# "--log-level",
# type=str,
# help="Set the stdout log-level (verbosity).",
# choices=LOGGING_LEVELS,
# default="info",
# )
# parser.add_argument(
# "--debug",
# action="store_true",
# help="Overrule log-level option, setting it to 'debug'.",
# )
parser.add_argument(
"-o",
"--output",
Expand Down

0 comments on commit 4a29d8e

Please sign in to comment.