MCPcopy
hub / github.com/yougov/mongo-connector / add_cli

Method add_cli

mongo_connector/config.py:62–68  ·  view source on GitHub ↗

Add a command line argument. All of the given arguments will be passed directly to optparse.OptionParser().add_option

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

60 self.type)
61
62 def add_cli(self, *args, **kwargs):
63 """Add a command line argument.
64
65 All of the given arguments will be passed directly to
66 optparse.OptionParser().add_option
67 """
68 self.cli_options.append((args, kwargs))
69
70
71class Config(object):

Callers 1

get_config_optionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected