INNER CODE UNIT · Python
gws_dispatch
cisagov/ScubaGoggles · scubagoggles/main.py:44
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 '
'credentials json file. ')
if user_config.credentials_file is not None:
help_msg += f'Defaults to {user_config.credentials_file}.'
parser.add_argument('--credentials',
'-c',
default=Path(user_config.credentials_file),
metavar='<credentials-JSON-file>',
type=path_parser,
help=help_msg)
else:
help_msg += ('Required unless the credentials path '
'has been saved using the ScubaGoggles setup utility or an access token is provided.')