From 241a03d9b9575270b1894ba604e74ad2ca2d8d79 Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Mon, 30 Sep 2024 00:16:05 -0400 Subject: [PATCH] Fix so markdown index isn't default --- doorstop/cli/main.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doorstop/cli/main.py b/doorstop/cli/main.py index 4027ecc9..3a337f5b 100644 --- a/doorstop/cli/main.py +++ b/doorstop/cli/main.py @@ -76,7 +76,9 @@ def main(args=None): # pylint: disable=R0915 # Build main parser parser = argparse.ArgumentParser( - prog=CLI, description=DESCRIPTION, **shared # type: ignore + prog=CLI, + description=DESCRIPTION, + **shared, # type: ignore ) parser.add_argument( "-F", @@ -536,7 +538,11 @@ def _publish(subs, shared): help="do not include levels on heading and non-heading or non-heading items", ) sub.add_argument("--template", help="template file", default=None) - sub.add_argument("--index", help="Generate top level index (when producing markdown).", action="store_false") + sub.add_argument( + "--index", + help="Generate top level index (when producing markdown).", + action="store_true", + ) if __name__ == "__main__":