Tests/store_packs.py
def option_handler():
    """Validates and parses script arguments.

    Returns:
        Namespace: Parsed arguments object.

    """
    parser = argparse.ArgumentParser(description="Store packs in cloud storage.")
    # disable-secrets-detection-start
    parser.add_argument('-a', '--artifacts_path', help="The full path of packs artifacts", required=True)
    parser.add_argument('-e', '--extract_path', help="Full path of folder to extract wanted packs", required=True)
    parser.add_argument('-s', '--service_account',
                        help=("Path to gcloud service account, is for circleCI usage. "
                              "For local development use your personal account and "
                              "authenticate using Google Cloud SDK by running: "
                              "`gcloud auth application-default login` and leave this parameter blank. "
                              "For more information go to: "
                              "https://googleapis.dev/python/google-api-core/latest/auth.html"),
                        required=False)
    parser.add_argument('-p', '--pack_names',
                        help=("Comma separated list of target pack names. "
                              "Define `All` in order to store all available packs."),
                        required=False, default="")
    parser.add_argument('-b', '--bucket_name', help="Storage bucket name", required=True)
    parser.add_argument('-n', '--ci_build_number',
                        help="CircleCi build number (will be used as hash revision at index file)", required=False)
    parser.add_argument('-o', '--override_pack', help="Override existing packs in cloud storage", default=False,
                        action='store_true', required=False)
    # disable-secrets-detection-end
    return parser.parse_args()
Validates and parses script arguments.

    Returns:
        Namespace: Parsed arguments object.

    
Validates and parses script arguments.
Validates and parses script arguments .
def option_handler():
    parser = argparse.ArgumentParser(description="Store packs in cloud storage.")
    parser.add_argument('-a', '--artifacts_path', help="The full path of packs artifacts", required=True)
    parser.add_argument('-e', '--extract_path', help="Full path of folder to extract wanted packs", required=True)
    parser.add_argument('-s', '--service_account',
                        help=("Path to gcloud service account, is for circleCI usage. "
                              "For local development use your personal account and "
                              "authenticate using Google Cloud SDK by running: "
                              "`gcloud auth application-default login` and leave this parameter blank. "
                              "For more information go to: "
                              "https://googleapis.dev/python/google-api-core/latest/auth.html"),
                        required=False)
    parser.add_argument('-p', '--pack_names',
                        help=("Comma separated list of target pack names. "
                              "Define `All` in order to store all available packs."),
                        required=False, default="")
    parser.add_argument('-b', '--bucket_name', help="Storage bucket name", required=True)
    parser.add_argument('-n', '--ci_build_number',
                        help="CircleCi build number (will be used as hash revision at index file)", required=False)
    parser.add_argument('-o', '--override_pack', help="Override existing packs in cloud storage", default=False,
                        action='store_true', required=False)
    return parser.parse_args()
def option_handler ( ) : parser = argparse . ArgumentParser ( description = "Store packs in cloud storage." ) parser . add_argument ( '-a' , '--artifacts_path' , help = "The full path of packs artifacts" , required = True ) parser . add_argument ( '-e' , '--extract_path' , help = "Full path of folder to extract wanted packs" , required = True ) parser . add_argument ( '-s' , '--service_account' , help = ( "Path to gcloud service account, is for circleCI usage. " "For local development use your personal account and " "authenticate using Google Cloud SDK by running: " "`gcloud auth application-default login` and leave this parameter blank. " "For more information go to: " "https://googleapis.dev/python/google-api-core/latest/auth.html" ) , required = False ) parser . add_argument ( '-p' , '--pack_names' , help = ( "Comma separated list of target pack names. " "Define `All` in order to store all available packs." ) , required = False , default = "" ) parser . add_argument ( '-b' , '--bucket_name' , help = "Storage bucket name" , required = True ) parser . add_argument ( '-n' , '--ci_build_number' , help = "CircleCi build number (will be used as hash revision at index file)" , required = False ) parser . add_argument ( '-o' , '--override_pack' , help = "Override existing packs in cloud storage" , default = False , action = 'store_true' , required = False ) return parser . parse_args ( )
Validates and parses script arguments.
Validates and parses script arguments .
"""Validates and parses script arguments.

    Returns:
        Namespace: Parsed arguments object.

    """ # disable-secrets-detection-start # disable-secrets-detection-end
Parsed arguments object.
Parsed arguments object .
Namespace