Limit number of simulated drones to be between 1 and 10
This commit is contained in:
parent
1527f49efc
commit
716161abeb
|
@ -1 +1,2 @@
|
||||||
docs/build/
|
docs/build/
|
||||||
|
.vscode
|
|
@ -134,7 +134,7 @@ def start(sys_id: int = 1):
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def start_group(count: int):
|
def start_group(count: int = typer.Argument(min=1, max=10)):
|
||||||
"""Start a group of robots"""
|
"""Start a group of robots"""
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
logger.info(f"start robot {i}")
|
logger.info(f"start robot {i}")
|
||||||
|
|
Loading…
Reference in New Issue