All Versions
Latest Version
Avg Release Cycle
42 days
Latest Release
1610 days ago

Changelog History
Page 1

  • v2.0.7 Changes

    May 08, 2018

    ๐Ÿ›  Fixed

    ๐Ÿ“œ Issue #54
    ๐Ÿ‘ Allow the dot character in options and arguments. Thanks @tgockel!

    ๐Ÿ“œ Issue #47
    ๐Ÿ‘€ If an option looks at the value of another option it can see the
    current value. If no value has been set a MissingValueException is thrown.

  • v2.0.6 Changes

    March 26, 2018

    ๐Ÿ”„ Changed

    • Help text formatting now treats multi-newlines as paragraph separators, while
      single newlines are still treated like spaces. Thanks @leomillon!
  • v2.0.5 Changes

    March 20, 2018

    ๐Ÿ”„ Changed

    Releasing to Maven Central in addition to Bintray. This is probably the only
    really externally visible change.

    โฌ†๏ธ Upgraded a bunch of dependencies, including gradlew.

    • gradle -> 4.5.1
    • dokka -> = 0.9.16
    • gradle_bintray -> = 1.8.0
    • gradle_release -> = 2.6.0
    • kotlin -> 1.2.30
    • xenocom -> 0.0.6
  • v2.0.4 Changes

    January 18, 2018

    โž• Added

    If the programName passed to mainBody is null, then the
    ๐Ÿ“œ system property com.xenomachina.argparser.programName is used, if set.

    ๐Ÿ“œ The parseInto method can be used as an inline alternative to force.
    Thanks @shanethehat!

    ๐Ÿ“œ Issue #24:
    0๏ธโƒฃ default can now accept a lambda, making it possible to defer computation of
    0๏ธโƒฃ defaults until actually required.
    Thanks @shanethehat!

    ๐Ÿ”„ Changed

    All instances of progName have been renamed to programName.

    โšก๏ธ The gradle wrapper has been updated.
    Thanks @ColinHebert!

  • v2.0.3 Changes

    June 12, 2017

    ๐Ÿ›  Fixed

  • v2.0.2 Changes

    June 12, 2017

    ๐Ÿ›  Fixed

    • ๐Ÿ“œ Issue #19 by
      โšก๏ธ updating xenocom dependency to 0.0.5. Also updated kotlin to 1.1.2-5 for good
  • v2.0.1 Changes

    May 15, 2017

    ๐Ÿ”„ Changed

    ๐Ÿ“œ Issue #14 โ€”
    previously, automatic option naming would turn "camelCase" into
    "--camelCase". Now it is converted to "--camel-case".

    Likewise, positinal argument auto-naming used to convert "camelCase" into
    "CAMELCASE". Now it is converted to "CAMEL-CASE".

    ๐Ÿ‘Œ Improve help formatting w/long program names

    README formatting improved.
    Thanks @konfilios!

    ๐Ÿ›  Fixed

    ๐Ÿ“œ Issue #17 โ€”
    specifying 0 for the columns should format help without line wrapping.
    Previously, this did not work as documented, and would instead wrap text in
    very narrow columns.

    ๐Ÿ“œ Issue #15
    โ€” make it possible to specify 'argName' on all variants of 'storing' and

  • v2.0.0 Changes

    April 21, 2017

    โž• Added

    ๐Ÿ“œ ArgParser.option is now a public method, so it's possible to create many
    ๐Ÿ†• new option types that were not previously possible. The existing option types
    are all written in terms of option, so they can be used to get an idea of
    how it works.

    โœ… More tests have been added.

    Started using format for

    ๐Ÿš€ Made minor improvements to release process

    ๐Ÿ”„ Changed

    ๐Ÿ“œ The storing, adding and positionalList methods of ArgParser have had
    their parameters slightly reordered to be consistent with the other methods.
    This is an incompatible change. The name(s) come first, if any, followed by
    help. Other parameters appear after help, with the transform function,
    if any, last. It is recommended that clients either pass the transform as a
    block (ie: with braces) or as a named parameter, as any future new parameters
    will necessarily change its position in the list.

    Delegate and DelegateProvider are now abstract classes with internal
    constructors. This makes it much easier for me to separate internal and
    public parts of their API. This is an incompatible change, however it
    shouldn't really affect you unless you were trying to implement Delegate,
    ๐Ÿ‘ which was't supported to begin with.

    0๏ธโƒฃ default methods on both Delegate and DelegateProvider are now extension
    methods. This makes it possible to generalize the type when adding a
    0๏ธโƒฃ default. This is most noticable when using a nullable value (or null
    0๏ธโƒฃ itself) for the default, though may also be useful in other cases (eg: a
    0๏ธโƒฃ "storing" that always produces a Rectangle, but you want the default to be
    a Circle. The resulting delegate will be a Delegate<Shape>.)

    Registration of delegates now takes place at binding-time rather than
    construction time. This should be pretty indistinguishable from the old
    behavior unless you're creating delegates without binding them.

    Help formatting has been improved so that it's far less likely to wrap option
    names in the usage table.

    ๐Ÿ›  There have been numerous bugfixes, particularly around positionals

  • v1.1.0 Changes

    March 09, 2017

    โž• Added

    • Auto-naming of options and positionals.

      • Each of the ArgParser methods that takes names and returns a Delegate has an overload that takes no name, but returns a DelegateProvider.
      • A DelegateProvider has an operator fun provideDelegate that returns a Delegate, using a name derived from the name of the property the DelegateProvider is being bound to.

    โœ‚ Removed

    • ๐Ÿ—„ addValidtator is now deprecated. Use addValidator instead.

    ๐Ÿ›  Fixed

    • โœ‚ Removed documentation of option from, as it is internal

    • Corrected spelling of addValidator. addValidtator is still there, but deprecated. It'll probably be removed in the next release, barring the addition of potato functionality.

  • v1.0.2 Changes

    March 07, 2017

    ๐Ÿ”„ Changed

    • โฌ†๏ธ Upgrade to Kotlin 1.1, extract xenocom package.