Skip to content

Commit

Permalink
Merge branch 'release/1.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
moigagoo committed Jun 3, 2018
2 parents 7d6d05d + 96e273d commit 0bc750a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.2.2

- Make `_root` not an abstract method.

# 1.2.1

- Fix critical bug that disallowed string params.
Expand Down
11 changes: 5 additions & 6 deletions cliar/cliar.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,15 @@ def parse(self):
arg: param for param, arg in self.root_command.arg_map.items()
}

try:
self.root_command.handler(
if self.root_command.handler(
**{inverse_root_arg_map[arg]: value for arg, value in root_args.items()}
)

except NotImplementedError:
) == NotImplemented:
self._parser.print_help()


def _root(self):
'''The root command, which corresponds to the script being called without any command.'''

raise NotImplementedError
# pylint: disable=no-self-use

return NotImplemented
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 = "cliar"
version = "1.2.1"
version = "1.2.2"
description = "Create CLIs with classes and type hints."
license = "MIT"
authors = ["Konstantin Molchanov <[email protected]>"]
Expand Down

0 comments on commit 0bc750a

Please sign in to comment.