Skip to content

Commit

Permalink
fix(cli): add debug cmd to cli args
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfarb committed Apr 25, 2023
1 parent fd4f1a1 commit 0206452
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arena/arena_mqtt.py
Expand Up @@ -180,6 +180,7 @@ def parse_cli(self):
help="App rotation as euler.x euler.y euler.z")
parser.add_argument("-c", "--scale", nargs=3, type=float, default=(1, 1, 1),
help="App scale in meters")
parser.add_argument("-D", "--debug", action='store_true', help='Debug mode.', default=False)
args = parser.parse_args()
app_position = tuple(args.position)
app_rotation = tuple(args.rotation)
Expand All @@ -192,6 +193,7 @@ def parse_cli(self):
"position": app_position,
"rotation": app_rotation,
"scale": app_scale,
"debug": args.debug,
}


Expand Down
2 changes: 2 additions & 0 deletions arena/device.py
Expand Up @@ -35,6 +35,8 @@ def __init__(
kwargs["namespace"] = self.args["namespace"]
if self.args["device"]:
kwargs["device"] = self.args["device"]
if self.args["debug"]:
debug = self.args["debug"]

if os.environ.get("DEVICE"):
self.device = os.environ["DEVICE"]
Expand Down
2 changes: 2 additions & 0 deletions arena/scene.py
Expand Up @@ -46,6 +46,8 @@ def __init__(
kwargs["namespace"] = self.args["namespace"]
if self.args["scene"]:
kwargs["scene"] = self.args["scene"]
if self.args["debug"]:
debug = self.args["debug"]

if os.environ.get("SCENE"):
self.scene = os.environ["SCENE"]
Expand Down

0 comments on commit 0206452

Please sign in to comment.