The Wayback Machine - https://web.archive.org/web/20210816205040/https://github.com/topics/argument-parser
Skip to content
#

argument-parser

Here are 340 public repositories matching this topic...

holgerbrandl
holgerbrandl commented Sep 7, 2018

I guess there is no real consistent scheme, but quite a few tools capitalize the help section headers.
So maybe a flag could be added to do the same when using kotlin-argparser.

So showiing

Usage: [-h] [-a] IMAGE-DIRECTORY MARKDOWN-FILES...

Optional arguments:
  -h, --help        show this help message and exit

  -a, --auto        Automatically remove orphan images


Position
mz8i
mz8i commented Mar 23, 2021

It might be useful to provide some kind of error classes as part of this package.
For example, I use code like this:

from argparse import ArgumentError, ArgumentParser

def file_path(x: str):
   d = Path(x)
   if d.is_dir:
      raise ArgumentError(f"{d} is a directory")
   return d

parser = ArgumentParser()
parser.add_argument('output_file', type=file_path, help="Path to 

Improve this page

Add a description, image, and links to the argument-parser topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the argument-parser topic, visit your repo's landing page and select "manage topics."

Learn more