Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion fetchcommandwrapper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,21 @@ def print_greeting():

def parse_parameters():
USAGE = "\n %(prog)s [OPTIONS] URI DISTDIR FILE [-- [ARG ..]]"
EPILOG = dedent("""\
environment variables:
NO_COLOR Disable use of color (default: auto-detect)
PORTAGE_VERBOSE Enable verbose mode on "1" (default: low verbosity)
""")

import argparse # noqa: I001
from fetchcommandwrapper.version import VERSION_STR # noqa: I001

parser = argparse.ArgumentParser(prog="fetchcommandwrapper", usage=USAGE)
parser = argparse.ArgumentParser(
prog="fetchcommandwrapper",
usage=USAGE,
epilog=EPILOG,
formatter_class=argparse.RawDescriptionHelpFormatter,
)
parser.add_argument("--version", action="version", version=VERSION_STR)

group = parser.add_mutually_exclusive_group()
Expand Down