Skip to content

Commit

Permalink
Updated to v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ozcanyarimdunya committed Feb 1, 2023
1 parent c6d0bb4 commit a3f34d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions argparge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ class Command(argparse.ArgumentParser):

def __init__(self, *commands, **kwargs):
self._commands = list(commands)
assert self.name is not None, "Command name cannot be empty! Set 'name' variable {} class.".format(
self.__class__.__name__
)
self.name = self.name or self.__class__.__name__.rstrip("Command").lower()
self.help = self.help or self.name
self.kwargs = kwargs
self.kwargs["description"] = kwargs.get("description", self.help)
self.kwargs["formatter_class"] = kwargs.get("formatter_class", HelpFormatter)
super().__init__(**kwargs)
super().__init__(**self.kwargs)

@abstractmethod
def add_arguments(self, parser: "Command"): ...
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Documentation | https://ozcanyarimdunya.github.io/argparge/ |
| Source code | https://github.com/ozcanyarimdunya/argparge/ |

`argparge` is a library that you can create beautiful class based cli application by using `argparse`.
`argparge` is a library that you can create beautiful class based cli application.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "argparge"
version = "0.1.2"
version = "0.1.3"
description = "A very simple tool to create beautiful console application by using native argparse."
authors = ["Özcan Yarımdünya <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit a3f34d7

Please sign in to comment.