Add ID as a positional argument to GetCommand

Change-Id: I07871ba5a072080f473310d9613efd555a85cb3b
This commit is contained in:
Endre Karlson
2012-11-28 01:58:08 +01:00
parent d636818d2a
commit 68319c6e89

View File

@@ -76,6 +76,11 @@ class ListCommand(Command, Lister):
class GetCommand(Command, ShowOne):
def get_parser(self, prog_name):
parser = super(GetCommand, self).get_parser(prog_name)
parser.add_argument('id', help='The ID or Name to get')
return parser
def post_execute(self, results):
return results.keys(), results.values()