vdb/cli.py
def build_args():
    """
    Constructs command line arguments for the vulnerability-db tool
    """
    parser = argparse.ArgumentParser(
        description="AppThreat's vulnerability database and package search library with a built-in file based storage"
    )
    parser.add_argument(
        "--clean",
        action="store_true",
        default=False,
        dest="clean",
        help="Clear the vulnerability database cache from platform specific user_data_dir",
    )
    parser.add_argument(
        "--cache",
        action="store_true",
        default=False,
        dest="cache",
        help="Cache vulnerability information in platform specific user_data_dir",
    )
    parser.add_argument(
        "--sync",
        action="store_true",
        default=False,
        dest="sync",
        help="Sync to receive the latest vulnerability data. Should have invoked cache first.",
    )
    parser.add_argument(
        "--sync-npm",
        action="store_true",
        default=False,
        dest="sync_npm",
        help="Sync from npm.",
    )
    parser.add_argument(
        "--sync-github",
        action="store_true",
        default=False,
        dest="sync_github",
        help="Sync from github.",
    )
    parser.add_argument(
        "--search",
        dest="search",
        help="Search for package and version in the database. Use colon to separate package and version. Use comma to specify multiple values. Eg: android:8.0",
    )
    parser.add_argument(
        "--search-npm",
        dest="search_npm",
        help="Search for package and version in the database. Use colon to separate package and version. Use comma to specify multiple values. Eg: android:8.0",
    )
    parser.add_argument(
        "--list",
        action="store_true",
        default=False,
        dest="list",
        help="List data in the db as a table",
    )
    return parser.parse_args()

    Constructs command line arguments for the vulnerability-db tool
    
Constructs command line arguments for the vulnerability-db tool
Constructs command line arguments for the vulnerability - db tool
def build_args():
    parser = argparse.ArgumentParser(
        description="AppThreat's vulnerability database and package search library with a built-in file based storage"
    )
    parser.add_argument(
        "--clean",
        action="store_true",
        default=False,
        dest="clean",
        help="Clear the vulnerability database cache from platform specific user_data_dir",
    )
    parser.add_argument(
        "--cache",
        action="store_true",
        default=False,
        dest="cache",
        help="Cache vulnerability information in platform specific user_data_dir",
    )
    parser.add_argument(
        "--sync",
        action="store_true",
        default=False,
        dest="sync",
        help="Sync to receive the latest vulnerability data. Should have invoked cache first.",
    )
    parser.add_argument(
        "--sync-npm",
        action="store_true",
        default=False,
        dest="sync_npm",
        help="Sync from npm.",
    )
    parser.add_argument(
        "--sync-github",
        action="store_true",
        default=False,
        dest="sync_github",
        help="Sync from github.",
    )
    parser.add_argument(
        "--search",
        dest="search",
        help="Search for package and version in the database. Use colon to separate package and version. Use comma to specify multiple values. Eg: android:8.0",
    )
    parser.add_argument(
        "--search-npm",
        dest="search_npm",
        help="Search for package and version in the database. Use colon to separate package and version. Use comma to specify multiple values. Eg: android:8.0",
    )
    parser.add_argument(
        "--list",
        action="store_true",
        default=False,
        dest="list",
        help="List data in the db as a table",
    )
    return parser.parse_args()
def build_args ( ) : parser = argparse . ArgumentParser ( description = "AppThreat's vulnerability database and package search library with a built-in file based storage" ) parser . add_argument ( "--clean" , action = "store_true" , default = False , dest = "clean" , help = "Clear the vulnerability database cache from platform specific user_data_dir" , ) parser . add_argument ( "--cache" , action = "store_true" , default = False , dest = "cache" , help = "Cache vulnerability information in platform specific user_data_dir" , ) parser . add_argument ( "--sync" , action = "store_true" , default = False , dest = "sync" , help = "Sync to receive the latest vulnerability data. Should have invoked cache first." , ) parser . add_argument ( "--sync-npm" , action = "store_true" , default = False , dest = "sync_npm" , help = "Sync from npm." , ) parser . add_argument ( "--sync-github" , action = "store_true" , default = False , dest = "sync_github" , help = "Sync from github." , ) parser . add_argument ( "--search" , dest = "search" , help = "Search for package and version in the database. Use colon to separate package and version. Use comma to specify multiple values. Eg: android:8.0" , ) parser . add_argument ( "--search-npm" , dest = "search_npm" , help = "Search for package and version in the database. Use colon to separate package and version. Use comma to specify multiple values. Eg: android:8.0" , ) parser . add_argument ( "--list" , action = "store_true" , default = False , dest = "list" , help = "List data in the db as a table" , ) return parser . parse_args ( )
Constructs command line arguments for the vulnerability-db tool
Constructs command line arguments for the vulnerability - db tool
"""
    Constructs command line arguments for the vulnerability-db tool
    """