-
Updated
Oct 23, 2021 - Rust
argument-parser
Here are 354 public repositories matching this topic...
-
Updated
Oct 18, 2021 - TypeScript
-
Updated
Oct 22, 2021 - Kotlin
-
Updated
Jul 26, 2021 - C++
-
Updated
Sep 15, 2021 - C++
-
Updated
Jul 22, 2021 - C++
The decorator would allow the use of async functions by running them using loop.run_until_complete. This should be implemented in a way that doesn't prevent execution if asyncio isn't present. (import within the decorator will do)
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
-
Updated
Jan 22, 2021 - C++
Apparently GoDoc cannot show documentation for exported methods of un-exported structs, and it makes no sense to export parser and/or command, thus this project should provide its own documentation page.
Add more examples
-
Updated
Apr 29, 2021 - C++
-
Updated
Jun 29, 2021 - PHP
-
Updated
Oct 23, 2021 - C#
-
Updated
Oct 21, 2021 - C++
-
Updated
Oct 23, 2021 - TypeScript
-
Updated
Jan 4, 2019 - Objective-C
-
Updated
Jul 4, 2020 - C++
-
Updated
Jan 21, 2021 - C++
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 -
Updated
Oct 1, 2021 - Julia
https://github.com/Owez/clonk/blob/15e8676fe218f63a4f6ca36f4f33300161f9c2d3/src/lib.rs#L145
Arguments formatted as -a are currently allowed but not ones like -ab (which go to both -a and -b) when inputted by a user.
EDIT: the overall issue is still relevant despite the codeblock shown being outdated.
-
Updated
Feb 4, 2020 - Swift
-
Updated
Jan 25, 2021 - C++
-
Updated
Aug 5, 2021 - C++
-
Updated
Oct 9, 2018 - TypeScript
-
Updated
Jun 1, 2020 - C++
-
Updated
Aug 2, 2021 - C++
Improve this page
Add a description, image, and links to the argument-parser topic page so that developers can more easily learn about it.
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."
An example directory of common usage patterns