Skip to content

Commit

Permalink
Change level positional arg to flag
Browse files Browse the repository at this point in the history
  • Loading branch information
efernandez committed Feb 15, 2018
1 parent 9262ff8 commit fba7c5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/rospy/src/rospy/rosconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ def _get_cmd_echo_argparse(prog):
parser.add_argument('filter', metavar='FILTER', type=str, nargs='?', default='.*',
help='regular expression to filter the logger name (default: %(default)s)')

parser.add_argument('level', metavar='LEVEL', type=str, nargs='?', default='warn',
parser.add_argument('-l', '--level', action='store', metavar='LEVEL',
type=str, default='warn', dest='level',
choices=[level.lower() for level in RosConsoleEcho.get_levels()],
help='minimum logger level to print (default: %(default)s)')

Expand Down

0 comments on commit fba7c5a

Please sign in to comment.