Jake Champlin
33b5174be4
Merge branch 'v2' into f-default-value-text
2016-08-30 10:53:16 -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
Dan Buch
ca2a0f72bf
Ensure context lookups traverse lineage
...
Closes #487
2016-07-23 21:53:55 -04:00
Dan Buch
a51cb870fb
Wrap a long line for flake8
2016-07-15 21:49:55 -04:00
Dan Buch
fcaccb600b
Run flake8 checks on generate-flag-types
2016-07-15 08:45:46 -04:00
Dan Buch
f7b2b93ffa
Merge remote-tracking branch 'origin/v1' into merging-from-v1
2016-07-14 17:50:16 -04:00
Dan Buch
8d976fe182
Get package choices from source of truth
2016-07-11 06:02:49 -04:00
Dan Buch
c3b03b8437
Adding flag type generation for altsrc
...
and a mention of this whole thing in the change log
2016-07-11 06:02:49 -04:00
Dan Buch
77f1130e65
Generate flag type lookup funcs
2016-07-10 12:50:57 -04:00
Dan Buch
3a8ad862a6
Add help text/docs for generate-flag-types script
2016-07-10 12:26:09 -04:00
Dan Buch
6185b8d8fd
Generate code for flag types and context accessors
2016-06-23 00:56:44 -04:00