Add ID as a positional argument to GetCommand
Change-Id: I07871ba5a072080f473310d9613efd555a85cb3b
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user