Skip to content

Commit

Permalink
Fix so markdown index isn't default
Browse files Browse the repository at this point in the history
  • Loading branch information
robtaylor committed Sep 30, 2024
1 parent 88fd137 commit 241a03d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doorstop/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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__":
Expand Down

0 comments on commit 241a03d

Please sign in to comment.