diff options
author | “Fernando <diazjf@us.ibm.com> | 2015-11-05 13:47:09 -0600 |
---|---|---|
committer | “Fernando <diazjf@us.ibm.com> | 2015-11-05 13:52:57 -0600 |
commit | 098a0c8fc5bcd1c8c000781700bcafb3ace7fbdd (patch) | |
tree | 4d2c0fc814356830fbfba30aa4262926c716b62d | |
parent | bf187bad982056d4dbc9b534a5a46807902853f3 (diff) | |
download | python-barbicanclient-098a0c8fc5bcd1c8c000781700bcafb3ace7fbdd.tar.gz |
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
-rw-r--r-- | barbicanclient/barbican_cli/orders.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/barbicanclient/barbican_cli/orders.py b/barbicanclient/barbican_cli/orders.py index d6f3583..cbbeacf 100644 --- a/barbicanclient/barbican_cli/orders.py +++ b/barbicanclient/barbican_cli/orders.py @@ -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: ' |