Compare commits
No commits in common. "9befbf0ade37d5505347a9955f9d542c9c70abbe" and "44378162b2dc5aee3a9e34d5d731b7f01536f5b1" have entirely different histories.
9befbf0ade
...
44378162b2
4 changed files with 6 additions and 16 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -1,13 +1,3 @@
|
||||||
## 0.7.0a3 (2025-10-10)
|
|
||||||
|
|
||||||
### Feat
|
|
||||||
|
|
||||||
- do not exit() with exit_on_error to False
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update test
|
|
||||||
|
|
||||||
## 0.7.0a2 (2025-09-29)
|
## 0.7.0a2 (2025-09-29)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "tiramisu_cmdline_parser"
|
name = "tiramisu_cmdline_parser"
|
||||||
version = "0.7.0a3"
|
version = "0.7.0a2"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "command-line parser using Tiramisu"
|
description = "command-line parser using Tiramisu"
|
||||||
|
|
|
||||||
|
|
@ -873,17 +873,17 @@ def test_readme_longargument(json):
|
||||||
|
|
||||||
|
|
||||||
def test_readme_unknown_key(json):
|
def test_readme_unknown_key(json):
|
||||||
output1 = """usage: prog.py "list" -v --list "a" [-h] [-v] [-nv] --list LIST [LIST ...] {str,list,int,none}
|
output1 = """usage: prog.py [-h] [-v] [-nv] {str,list,int,none}
|
||||||
prog.py: error: unrecognized arguments: --unknown
|
prog.py: error: unrecognized arguments: --unknown
|
||||||
"""
|
"""
|
||||||
output2 = """usage: prog.py "list" -v --list "a" [-h] [-v] [-nv] --list LIST [LIST ...] {str,list,int,none}
|
output2 = """usage: prog.py [-h] [-v] [-nv] {str,list,int,none}
|
||||||
prog.py: error: unrecognized arguments: --root.unknown
|
prog.py: error: unrecognized arguments: --root.unknown
|
||||||
"""
|
"""
|
||||||
parser = TiramisuCmdlineParser(get_config(json, True), 'prog.py', fullpath=False, formatter_class=TestHelpFormatter)
|
parser = TiramisuCmdlineParser(get_config(json, True), 'prog.py', fullpath=False, formatter_class=TestHelpFormatter)
|
||||||
f = StringIO()
|
f = StringIO()
|
||||||
with redirect_stderr(f):
|
with redirect_stderr(f):
|
||||||
try:
|
try:
|
||||||
parser.parse_args(['list', '--list', 'a', '--v', '--unknown'])
|
parser.parse_args(['--unknown'])
|
||||||
except SystemExit as err:
|
except SystemExit as err:
|
||||||
assert str(err) == "2"
|
assert str(err) == "2"
|
||||||
else:
|
else:
|
||||||
|
|
@ -893,7 +893,7 @@ prog.py: error: unrecognized arguments: --root.unknown
|
||||||
f = StringIO()
|
f = StringIO()
|
||||||
with redirect_stderr(f):
|
with redirect_stderr(f):
|
||||||
try:
|
try:
|
||||||
parser.parse_args(['list', '--list', 'a', '--v', '--root.unknown'])
|
parser.parse_args(['--root.unknown'])
|
||||||
except SystemExit as err:
|
except SystemExit as err:
|
||||||
assert str(err) == "2"
|
assert str(err) == "2"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.7.0a3"
|
__version__ = "0.7.0a2"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue