INNER CODE UNIT · Python

get_gws_args

cisagov/ScubaGoggles · scubagoggles/main.py:32

def get_gws_args(parser: argparse.ArgumentParser, user_config: UserConfig):
    """Adds the arguments for the GWS parser

    :param argparse.ArgumentParser parser: argparse object
    :param UserConfig user_config: user configuration object
    """

    scuba_path = Path(__file__).parent

    gws = Orchestrator.gws_products()
    gws_baselines = tuple(sorted(gws['gws_baselines']))

    def gws_dispatch(args):
        Orchestrator(args).start_automation()

    parser.set_defaults(dispatch=gws_dispatch)

    help_msg = ('The location and name of the OAuth / service account '

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…