Commit Graph
6 Commits
Author SHA1 Message Date
Jake Champlin 33b5174be4 Merge branch 'v2' into f-default-value-text 2016-08-30 10:53:16 -04:00
Jake Champlin 7d56512ecc Add documentation, remove quotes by default 2016-08-30 10:52:24 -04:00
Jake Champlin e0556cf9e8 Add DefaultValue text for flags
Allows a user to override the default value of a flag in the displayed help output.

Ex:
```
cli.IntFlag{
	Name: "foo, f",
	DefaultText: "random foo",
	Value: "bar",
}
```

Running `(app.name) -h` will now yield:

```
--foo value     (default: "random foo")
```

Fixes: #504
2016-08-28 03:14:39 -04:00
Jake Champlin 2ab83fab2a Force generation of flag types to use gopkg import 2016-08-28 01:36:49 -04:00
Jake Champlin b93207160f Update altsrc imports to gopkg.in
Updates altsrc imports to use `gopkg.in/urfave/cli.v2`

Fixes: #505
2016-08-27 19:14:15 -04:00
Jake Champlin 3a3228c0e4 Abstract dependency and test execution with Makefile
Abstract the `runtests` script with a makefile, and update travis tests to use makefile abstraction.
2016-08-26 08:34:05 -04:00