1
0
Fork 0

Adding upstream version 0.6.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-04-21 10:59:46 +02:00
parent e5d20de2e1
commit 271f3e2863
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
20 changed files with 2544 additions and 0 deletions

29
examples/demo.py Normal file
View file

@ -0,0 +1,29 @@
"""Simple app example"""
from decli import cli
data = {
"prog": "app",
"arguments": [
{"name": "--install", "action": "store_true", "group": "opas"},
{"name": "--purge", "action": "store_false", "group": "opas"},
],
"subcommands": {
"title": "main",
"commands": [
{
"name": "commit",
"arguments": [
{
"name": "--bocha",
"action": "store_true",
"group": "opas",
}
],
}
],
},
}
parser = cli(data)
args = parser.parse_args()
print(args)