Skip to content

Commit

Permalink
docs: spruce up --help
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed May 25, 2022
1 parent 028cdcb commit ca823e0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion enex2notion/cli_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@

from enex2notion.version import __version__

HELP_ARGS_WIDTH = 29


def parse_args(argv):
parser = argparse.ArgumentParser(
prog="enex2notion", description="Uploads ENEX files to Notion"
prog="enex2notion",
description="Uploads ENEX files to Notion",
usage="%(prog)s [-h] [--token TOKEN] [OPTION ...] FILE/DIR [FILE/DIR ...]",
formatter_class=lambda prog: argparse.HelpFormatter(
prog, max_help_position=HELP_ARGS_WIDTH
),
)

schema = {
Expand Down

0 comments on commit ca823e0

Please sign in to comment.