Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(client): re-parse docopt
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Oct 21, 2014
1 parent c0d7b20 commit 77c8c18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/deis.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ def apps(self, args):
Use `deis help [command]` to learn more.
"""
sys.argv[1] = 'apps:list'
args = docopt(self.apps_list.__doc__)
return self.apps_list(args)

def apps_create(self, args):
Expand Down Expand Up @@ -813,6 +815,8 @@ def builds(self, args):
Use `deis help [command]` to learn more.
"""
sys.argv[1] = 'builds:list'
args = docopt(self.builds_list.__doc__)
return self.builds_list(args)

def builds_create(self, args):
Expand Down Expand Up @@ -1081,6 +1085,8 @@ def domains(self, args):
Use `deis help [command]` to learn more.
"""
sys.argv[1] = 'domains:list'
args = docopt(self.domains_list.__doc__)
return self.domains_list(args)

def domains_add(self, args):
Expand Down Expand Up @@ -1547,6 +1553,8 @@ def keys(self, args):
Use `deis help [command]` to learn more.
"""
sys.argv[1] = 'keys:list'
args = docopt(self.keys_list.__doc__)
return self.keys_list(args)

def keys_add(self, args):
Expand Down Expand Up @@ -1787,6 +1795,8 @@ def releases(self, args):
Use `deis help [command]` to learn more.
"""
sys.argv[1] = 'releases:list'
args = docopt(self.releases_list.__doc__)
return self.releases_list(args)

def releases_info(self, args):
Expand Down

0 comments on commit 77c8c18

Please sign in to comment.