def Args(parser): """Args is called by calliope to gather arguments for this command. Args: parser: An argparse parser that you can use to add arguments that go on the command line after this command. Positional arguments are allowed. """ common_flags.consumer_service_flag(suffix='to disable').AddToParser(parser) base.ASYNC_FLAG.AddToParser(parser)
def Args(parser): """Args is called by calliope to gather arguments for this command. Args: parser: An argparse parser that you can use to add arguments that go on the command line after this command. Positional arguments are allowed. """ common_flags.consumer_service_flag( suffix='to disable').AddToParser(parser) base.ASYNC_FLAG.AddToParser(parser) parser.add_argument( '--force', action='store_true', help='If specified, the disable call will proceed even if there are ' 'enabled services which depend on the service to be disabled. ' 'Forcing the call means that the services which depend on the service ' 'to be disabled will also be disabled.')