Merge "Make CLI Order's type field a required argument"

This commit is contained in:
Jenkins 2015-11-18 16:50:13 +00:00 committed by Gerrit Code Review
commit 643597a8b8
1 changed files with 1 additions and 2 deletions

View File

@ -25,10 +25,9 @@ class CreateOrder(show.ShowOne):
def get_parser(self, prog_name):
parser = super(CreateOrder, self).get_parser(prog_name)
parser.add_argument('type', help='the type of the order to create.')
parser.add_argument('--name', '-n',
help='a human-friendly name.')
parser.add_argument('--type', '-p',
help='the type of the order to create.')
parser.add_argument('--algorithm', '-a', default='aes',
help='the algorithm to be used with the '
'requested key (default: '