Skip to content

Commit d4cd77f

Browse files
committed
Set default spawn count to 1
Most often I want to just spawn a single VM. Hence, I'd rather have the `--count` argument default to `1` instead of having to specify it each time. Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 03ef6e8 commit d4cd77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf_remote/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _get_arg_parser():
219219
action="store_true",
220220
)
221221
sp.add_argument("--platform", help="Platform to use", type=str)
222-
sp.add_argument("--count", help="How many hosts to spawn", type=int)
222+
sp.add_argument("--count", default=1, help="How many hosts to spawn", type=int)
223223
sp.add_argument(
224224
"--role", help="Role of the hosts", choices=["hub", "hubs", "client", "clients"]
225225
)

0 commit comments

Comments
 (0)