Skip to content

Commit

Permalink
trivial tweak to rename subparser
Browse files Browse the repository at this point in the history
  • Loading branch information
codebot committed Jan 28, 2017
1 parent 03b6a20 commit 3bad13c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sros2.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,13 @@ def main(sysargs=None):
parser_distribute_keys.add_argument('ROOT', help='root path of keystore')
parser_distribute_keys.add_argument('TARGET', help='target keystore path')

parser_distribute_keys = subparsers.add_parser('create_permission')
parser_distribute_keys.set_defaults(which='create_permission')
parser_distribute_keys.add_argument('ROOT', help='root path of keystore')
parser_distribute_keys.add_argument('NAME', help='key name, aka ROS node name')
parser_distribute_keys.add_argument(
parser_create_perm = subparsers.add_parser('create_permission')
parser_create_perm.set_defaults(which='create_permission')
parser_create_perm.add_argument('ROOT', help='root path of keystore')
parser_create_perm.add_argument('NAME', help='key name, aka ROS node name')
parser_create_perm.add_argument(
'POLICY_FILE_PATH', help='path of the permission yaml file')

args = parser.parse_args(sysargs)

if '-h' in sysargs or '--help' in sysargs:
Expand Down

0 comments on commit 3bad13c

Please sign in to comment.