refactor: only import argparse when cli is run

This commit is contained in:
ppoelzl
2021-02-10 00:03:28 +01:00
parent 65748cc71c
commit 93d0f23fe0

View File

@@ -1,4 +1,3 @@
import argparse
import hashlib
import logging
import pathlib
@@ -49,6 +48,7 @@ def update_manifest(version: Optional[str] = None, replace: bool = False):
def cli():
"""CLI for conveniently updating Path of Building's manifest file."""
import argparse
parser = argparse.ArgumentParser(
usage="%(prog)s [options] filename",