Limit number of simulated drones to be between 1 and 10

This commit is contained in:
Youssof 2024-06-05 11:14:53 -03:00
parent 1527f49efc
commit 716161abeb
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
docs/build/
.vscode

View File

@ -134,7 +134,7 @@ def start(sys_id: int = 1):
@app.command()
def start_group(count: int):
def start_group(count: int = typer.Argument(min=1, max=10)):
"""Start a group of robots"""
for i in range(count):
logger.info(f"start robot {i}")