HEX
Server: nginx/1.24.0
System: Linux ip-172-31-22-109 6.17.0-1012-aws #12~24.04.1-Ubuntu SMP Mon Apr 6 17:36:28 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/landscape/lib/cli.py
def add_cli_options(parser, cfgfile=None, datadir=None):
    """Add common CLI options to the given arg parser."""
    from . import config

    config.add_cli_options(parser, cfgfile)

    datadirhelp = "The directory in which to store data files."
    if datadir:
        datadirhelp += f" (default: {datadir!r})"
    parser.add_option(
        "-d",
        "--data-path",
        metavar="PATH",
        default=datadir,
        help=datadirhelp,
    )