Tools: fix the help message

This commit is contained in:
Tatsuya Yamaguchi 2019-07-05 08:47:47 +09:00 committed by Randy Mackay
parent ba1903708b
commit 4321a987f2
1 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ def parse_args(proc_args):
p.add_argument('uart', help="UART device the sensor is currently using (e.g. /dev/ttyUSB0, /dev/ttyS1, etc)")
p.set_defaults(func=cmd_switch_to_i2c)
p = subparsers.add_parser('switch-to-uart', help="Switch sensor to I2C mode")
p.add_argument('i2c_dev', help="I2C-device the sensor is currently using (e.g. /dev/i2c-1, /dev/i2c-2, etc)")
p.add_argument('addr', type=lambda x: int(x, 0), help="I2C-device's address the sensor is currently using (e.g. 0x10, 0x11, etc)")
p = subparsers.add_parser('switch-to-uart', help="Switch sensor to UART mode")
p.add_argument('i2c_dev', help="I2C device the sensor is currently using (e.g. /dev/i2c-1, /dev/i2c-2, etc)")
p.add_argument('addr', type=lambda x: int(x, 0), help="I2C device's address the sensor is currently using (e.g. 0x10, 0x11, etc)")
p.set_defaults(func=cmd_switch_to_uart)
try: