Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged latest master from upstream #1

Merged
merged 160 commits into from Feb 25, 2015
Merged

Conversation

pombredanne
Copy link
Owner

No description provided.

xyproto and others added 30 commits November 15, 2013 11:30
Used to output:
```
-- 'name'          -name option -name option%!(EXTRA string=Usage text)
```

Now:
```
--name []          `-name option -name option` Usage text
```
Add shortcut for version flag
string slice flag option formatting
Allow to detect optional flags
Subcommand example used non-existent function
Add a way to override the app help printer
jszwedko and others added 28 commits December 1, 2014 23:21
Adding support for multiple env var "cascade"
Signed-off-by: David Wadden <dwadden@pivotal.io>
…multiple

Feels like it may have been copied from StringSliceFlag or something,
but update the output to be more consistent with other single value
flags.

Also added comments to the String and Apply functions.
Allow hiding of help flag without hiding help subcommand
Fix help text for generic flag to not insinuate that you can specify mul...
Windows doesn't recognize 's for wrapping values. "s should work on all
systems.
strconv.ParseInt should be used instead of strconv.ParseUint when readin...
To be consistent with what the stdlib flag package does.
Use 0 as the base when parsing ints
stop flag parsing after terminator --
Rather than passing the unparsed context (parent context) in whenever
there are no subcommands.
As discussed in issue #151, I modified the implementation to be simpler.
I checked how to propagate err, being done with a scope trick. From our
deferred function we cannot return a new value, so we override the "default"
return value (err), declared on functions' declarations.

Check this StackOverflow for more info: http://stackoverflow.com/a/19934989
Use parsed context when running command as subcommnd
After: companion action for Before
pombredanne added a commit that referenced this pull request Feb 25, 2015
Merged latest master from upstream
@pombredanne pombredanne merged commit 197ce63 into pombredanne:master Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet