Skip to content

Commit

Permalink
Little improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 27, 2025
1 parent 60574c1 commit feabf3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nanosaur/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def main():
parser_workspace = parser_workspace_menu(subparsers)

# Subcommand: simulation (with a sub-menu for simulation types)
if device_type == 'desktop':
if device_type == 'desktop' and 'mode' in params:
# Add simulation subcommand
parser_simulation = parser_simulation_menu(subparsers, params)

Expand All @@ -281,7 +281,7 @@ def main():
parser_swarm = parser_swarm_menu(subparsers, params)

# Subcommand: wakeup (with a sub-menu for wakeup operations)
if 'robots' in params:
if 'mode' in params and 'robots' in params:
robot_control(params, subparsers)

# Enable tab completion
Expand Down

0 comments on commit feabf3f

Please sign in to comment.