Skip to content

Commit 31e9722

Browse files
committed
add --clean
for consistency with other both-ways boolean flags
1 parent 8802ca2 commit 31e9722

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

repo2docker/__main__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,16 @@ def get_argparser():
187187
argparser.add_argument(
188188
"--no-clean",
189189
dest="clean",
190-
default=None,
191190
action="store_false",
192191
help="Don't clean up remote checkouts after we are done",
193192
)
193+
argparser.add_argument(
194+
"--clean",
195+
dest="clean",
196+
action="store_true",
197+
help="Clean up remote checkouts after we are done (default).",
198+
)
199+
argparser.set_defaults(clean=None)
194200

195201
argparser.add_argument(
196202
"--push",

0 commit comments

Comments
 (0)