mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
set arg types
old-commit-hash: 2f2b9116d48272c62e226c7452ddc95f9a2f48ff
This commit is contained in:
@@ -35,8 +35,8 @@ if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="can data viewer",
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||
|
||||
parser.add_argument("--bus", help="CAN bus to print out", default=0)
|
||||
parser.add_argument("--max_msg", help="max addr ")
|
||||
parser.add_argument("--bus", type=int, help="CAN bus to print out", default=0)
|
||||
parser.add_argument("--max_msg", type=int, help="max addr ")
|
||||
parser.add_argument("--addr", default="127.0.0.1")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
Reference in New Issue
Block a user