Skip to content

Commit

Permalink
fix subparsers of rosclean (ros#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored Jul 6, 2020
1 parent b89723c commit bdd49c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rosclean/src/rosclean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def rosclean_main(argv=None):
if argv is None:
argv = sys.argv
parser = argparse.ArgumentParser(prog='rosclean')
subparsers = parser.add_subparsers() # help='sub-command help')
subparsers = parser.add_subparsers(required=True, dest='{check,purge}') # help='sub-command help')
parser_check = subparsers.add_parser('check', help='Check usage of log files')
parser_check.set_defaults(func=_rosclean_cmd_check)
parser_purge = subparsers.add_parser('purge', help='Remove log files')
Expand Down

0 comments on commit bdd49c1

Please sign in to comment.