Skip to content

Commit

Permalink
feat: add :empty to represent empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
likianta committed Nov 3, 2023
1 parent 904b26f commit b539962
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion argsense/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
from .parser import parse_docstring
from .parser import parse_function

__version__ = '0.5.4'
__version__ = '0.5.5'
7 changes: 3 additions & 4 deletions argsense/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,11 @@ def ctype_2_type(t: T.ParamType2, v: t.Any = None) -> T.ParamType3:
)

SPECIAL_ARGS = {
':true' : True,
':cwd' : os.getcwd(),
':empty': '',
':false': False,
# ':t': True,
# ':f': False,
':none' : None,
':cwd' : os.getcwd(),
':true' : True,
}


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 = "argsense"
version = "0.5.4"
version = "0.5.5a0"
homepage = "https://github.com/likianta/argsense-cli"
description = "New command line interface based on Python Rich library."
readme = "README.md"
Expand Down

0 comments on commit b539962

Please sign in to comment.