def get_args(args):
    if (isinstance(args, list) and (len(args) > 0)):
        args_parser = argparse.ArgumentParser(description='Add Custom Category to CxDB')
        args_parser.add_argument('-dbd', '--dbdriver', help='Checkmarx MSSQL DB Driver', required=False, default='SQL Server')
        args_parser.add_argument('-dbu', '--dbuser', help='Checkmarx MSSQL DB Username', required=True)
        args_parser.add_argument('-dbp', '--dbpassword', help='Checkmarx MSSQL DB Password', required=True)
        args_parser.add_argument('-dbs', '--dbserver', help='Checkmarx MSSQL DB Server URL', required=True)
        args_parser.add_argument('-fg', '--file_groups', help='Categories and Queries Mapping File', required=True)
        return args_parser.parse_args(args)
    else:
        raise AttributeError('args should be a non-empty array')
def get_args(args):
    if (isinstance(args, list) and (len(args) > 0)):
        args_parser = argparse.ArgumentParser(description='Add Custom Category to CxDB')
        args_parser.add_argument('-dbd', '--dbdriver', help='Checkmarx MSSQL DB Driver', required=False, default='SQL Server')
        args_parser.add_argument('-dbu', '--dbuser', help='Checkmarx MSSQL DB Username', required=True)
        args_parser.add_argument('-dbp', '--dbpassword', help='Checkmarx MSSQL DB Password', required=True)
        args_parser.add_argument('-dbs', '--dbserver', help='Checkmarx MSSQL DB Server URL', required=True)
        args_parser.add_argument('-fg', '--file_groups', help='Categories and Queries Mapping File', required=True)
        return args_parser.parse_args(args)
    else:
        raise AttributeError('args should be a non-empty array')