Make CLI Order's type field a required argument

Barbican Secret Order Create has 'type' as an optional parameter,
eventhough it is required. This patch makes the argument a
positional argument.

Change-Id: I5f69ac741ec1d59b7ecb76d6c7cc655a92d18a25
Closes-Bug: #1485615
This commit is contained in:
“Fernando 2015-11-05 13:47:09 -06:00
parent bf187bad98
commit 098a0c8fc5
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: '