Skip to content

Commit

Permalink
version 4.0a1
Browse files Browse the repository at this point in the history
Highlights since 3.1:

* Clize now parses Sphinx-style docstrings.  It is the recommended way
  of documenting functions now, as it is interoperable and not specific
  to Clize.
* Value converters can now convert the default value for their
  parameter.  Specify `convert_default=True` when decorating with
  `value_converter`.
* `converters.file`:
  * you can use it without parenthesis now: `def * func(infile:converters.file):`
  * it now converts the default parameter:  `infile:converters.file='-'`
    gives a file opener for stdin if no value was provided by the user
* Dropped Python 2.6 support.  Use Clize 3.1 if you need to support it.
* Clize now shows a hint if a subcommand is misspelled.
* Extension API changes:
  * `parser.CliBoundArguments` now uses the `attrs` package.  Instead of
    parsing arguments on instantiation, it has a process_arguments
    method for this.  This is a breaking change if you were
    instantiating it directly rather than use
    `parser.CliSignature.read_arguments`
  * Separate the value setting logic in `ParameterWithValue` to a
    `set_value` method.  Most parameter types don't need to override
    `read_argument` anymore.
  * Separated the help CLI from documentation generation and display.
    Also comes with more `attrs`.  This API is now documented.
* Fix wrong docstring being used for header/footer text when the
  intended function had no (visible) parameters.
  • Loading branch information
epsy committed Apr 11, 2017
1 parent c2cc3b5 commit 1a1ec33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

setup(
name='clize',
version='3.2a1',
description='Command-line argument parsing for Python, without the effort',
version='4.0a1',
description='Automatic command-line argument parsing '
'converted from your function parameters',
license='MIT',
url='https://github.com/epsy/clize',
author='Yann Kaiser',
Expand Down

0 comments on commit 1a1ec33

Please sign in to comment.