From 3bc5a60036f5bfc8e5e7e9c5661c7cc4bd0e74eb Mon Sep 17 00:00:00 2001 From: ryneeverett Date: Wed, 12 Aug 2020 03:20:22 +0000 Subject: [PATCH] Make --package-python a boolean flag. (without defining an off-switch) --- mkcodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkcodes.py b/mkcodes.py index d889749..abd1b82 100755 --- a/mkcodes.py +++ b/mkcodes.py @@ -139,7 +139,7 @@ def add_inits_along_path(from_path, to_path): help='Github-flavored fence blocks or pure markdown.') @click.option('--safe/--unsafe', default=True, help='Allow code blocks without language hints.') -@click.option('--package-python', default=True, +@click.option('--package-python', default=True, is_flag=True, help='Add __init__.py files to python dirs for test discovery') @click.option('--default-lang', default='py', help='Assumed language for code blocks without language hints.')