How to use the gdown.cli._ShowVersionAction function in gdown

To help you get started, we’ve selected a few gdown examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wkentaro / gdown / gdown / cli.py View on Github external
def main():
    parser = argparse.ArgumentParser(
        formatter_class=argparse.ArgumentDefaultsHelpFormatter
    )
    parser.add_argument(
        "-V",
        "--version",
        version=distribution.version,
        action=_ShowVersionAction,
        help="display version",
    )
    parser.add_argument(
        "url_or_id", help="url or file id (with --id) to download file from"
    )
    parser.add_argument("-O", "--output", help="output filename")
    parser.add_argument(
        "-q", "--quiet", action="store_true", help="suppress standard output"
    )
    parser.add_argument(
        "--id",
        action="store_true",
        help="flag to specify file id instead of url",
    )
    parser.add_argument(
        "--proxy",

gdown

Google Drive Public File/Folder Downloader

MIT
Latest version published 6 months ago

Package Health Score

75 / 100
Full package analysis