lint: tidy up code in cli module
This commit is contained in:
parent
5f7733d064
commit
98895e47de
6 changed files with 61 additions and 58 deletions
|
@ -27,8 +27,8 @@ def parse_args(argv: List[str]) -> None:
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
verbose = "-v" in sys.argv or "--verbose" in sys.argv
|
||||
VERBOSE = "-v" in sys.argv or "--verbose" in sys.argv
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG if verbose else logging.INFO)
|
||||
level=logging.DEBUG if VERBOSE else logging.INFO)
|
||||
logging.debug("Arguments: %s", sys.argv)
|
||||
parse_args(sys.argv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue