INNER CODE UNIT · Python
build_parser
PKU-EMBL/BASALT · BASALT_setup_China_mainland.py:495
def build_parser() -> argparse.ArgumentParser:
"""Define the command-line interface."""
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description=(
"Install BASALT on Linux with selectable China-mainland mirrors. "
"No global Conda or pip configuration is modified."
),
)
parser.add_argument("--source-dir", help="Use an existing BASALT checkout.")
parser.add_argument(
"--install-root",
default=str(Path.cwd()),
help="Parent directory used when the repository must be cloned.",
)
parser.add_argument("--repo-url", default=REPOSITORY_URL, help="Git clone URL.")
parser.add_argument(
"--manager",