Skip to content

Commit

Permalink
Updated to v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ozcanyarimdunya committed Aug 23, 2023
1 parent a3f34d7 commit 3306dee
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 33 deletions.
4 changes: 4 additions & 0 deletions argparge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def add_arguments(self, parser: "Command"): ...
def handle(self, **arguments): ...


class GroupCommand(ParentCommand):
pass


class Application(argparse.ArgumentParser):
_mappings_key = "#><#"

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Let's have cli that user can `greet` a person, `list`, `create`, `sell` and item
```python
from argparge import Application
from argparge import Command
from argparge import ParentCommand
from argparge import GroupCommand


class GreetCommand(Command):
Expand Down Expand Up @@ -75,7 +75,7 @@ if __name__ == "__main__":
app.add_argument("-v", "--version", action="version", version="1.0.0")
app.add_commands(
GreetCommand(),
ParentCommand(
GroupCommand(
ItemListCommand(),
ItemCreateCommand(),
ItemSellCommand(),
Expand Down
Loading

0 comments on commit 3306dee

Please sign in to comment.