api: Pass along --site in init_from_options

(imported from commit a893c098b92690214a90a572ab54504d93da29e6)
This commit is contained in:
Reid Barton 2012-12-14 16:03:15 -05:00
parent b3e67d2ac4
commit 47313467b1

View file

@ -58,7 +58,7 @@ def generate_option_group(parser):
def init_from_options(options): def init_from_options(options):
return Client(email=options.email, api_key=options.api_key, config_file=options.config_file, return Client(email=options.email, api_key=options.api_key, config_file=options.config_file,
verbose=options.verbose) verbose=options.verbose, site=options.site)
class Client(object): class Client(object):
def __init__(self, email=None, api_key=None, config_file=None, def __init__(self, email=None, api_key=None, config_file=None,