Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xenomachina/kotlin-argparser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.0
Choose a base ref
...
head repository: xenomachina/kotlin-argparser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
language: java

jdk:
- openjdk8

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.gradle/

after_success:
- ./gradlew jacocoTestReport && ./codecov.sh
115 changes: 106 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,103 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.0.7 - 2018-05-08

### Fixed

- [Issue #54](https://github.com/xenomachina/kotlin-argparser/issues/54)
Allow the dot character in options and arguments. Thanks @tgockel!

- [Issue #47](https://github.com/xenomachina/kotlin-argparser/issues/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.

## 2.0.6 - 2018-03-26

### Changed

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

## 2.0.5 - 2018-03-20

### 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

## 2.0.4 - 2018-01-18

### 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](https://github.com/xenomachina/kotlin-argparser/issues/18):
`default` can now accept a lambda, making it possible to defer computation of
defaults until actually required.
Thanks @shanethehat!

### Changed

- All instances of `progName` have been renamed to `programName`.

- The gradle wrapper has been updated.
Thanks @ColinHebert!

## 2.0.3 - 2017-06-12

### Fixed

- [Issue #18](https://github.com/xenomachina/kotlin-argparser/issues/18)

## 2.0.2 - 2017-06-12

### Fixed

- [Issue #19](https://github.com/xenomachina/kotlin-argparser/issues/19) by
updating xenocom dependency to 0.0.5. Also updated kotlin to 1.1.2-5 for good
measure.

## 2.0.1 - 2017-05-15

### Changed

- [Issue #14](https://github.com/xenomachina/kotlin-argparser/issues/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](https://github.com/xenomachina/kotlin-argparser/issues/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](https://github.com/xenomachina/kotlin-argparser/issues/15)
— make it possible to specify 'argName' on all variants of 'storing' and
`adding`


## 2.0.0 - 2017-04-21

### Added
@@ -67,31 +164,31 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Removed

- `addValidtator` is now deprecated. Use `addValidator` instead.
- `addValidtator` is now deprecated. Use `addValidator` instead.

### Fixed

- Removed documentation of `option` from `README.md`, as it is internal
- Removed documentation of `option` from `README.md`, 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.
- 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.

## 1.0.2 - 2017-03-07

### Changed

- Upgrade to Kotlin 1.1, extract xenocom package.
- Upgrade to Kotlin 1.1, extract xenocom package.

## 1.0.1 - 2017-01-30

### Fixed

- Fix small bug where `runMain` didn't have a default value for `columns`
parameter. (Now defaults to null.)
- Fix small bug where `runMain` didn't have a default value for `columns`
parameter. (Now defaults to null.)

## 1.0.0 - 2017-01-27

### Added

- Initial release
- Initial release
Loading