Skip to content

Commit 2c81b60

Browse files
committed
Set default, type, and help method for engine in argparse
Fixes --engine cli option not showing up
1 parent 297c795 commit 2c81b60

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

repo2docker/__main__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,12 @@ def get_argparser():
217217
"--cache-from", action="append", default=[], help=Repo2Docker.cache_from.help
218218
)
219219

220-
argparser.add_argument("--engine", help="Name of the container engine")
220+
argparser.add_argument(
221+
"--engine",
222+
type=str,
223+
default="docker",
224+
help=Repo2Docker.engine.help,
225+
)
221226

222227
return argparser
223228

0 commit comments

Comments
 (0)