Comments (5)
I can't replicate this. That test (would) fail, but only because Terminate()
is a noop.
There's sample code included that is basically what you describe, and it also works:
[alec@cavern:~/Projects/kingpin]go run ./examples/ping/main.go --version
0.0.1
Please reopen if you can provide sample code that doesn't work as expected.
from kingpin.
Hmm, I found that this is not a matter of usage, but rather version. I'm using version from gopkg.in (v2.0.10) and that is not working, my code:
_src = kingpin.Arg("src", "Source file/directory to copy.").Required().ExistingFileOrDir()
kingpin.Version(fmt.Sprintf("ecp (Extended copy) %v\n", Version))
kingpin.Parse()
from kingpin.
You're one minor release behind (2.0.11 is current stable), and it looks like this issue was fixed in d7d603e, which is after 2.0.10.
from kingpin.
Oh, yes, godep is just behaving not the way I expected :) Thank you!
from kingpin.
No problem!
from kingpin.
Related Issues (20)
- Don't show the subcommands in the help output HOT 3
- help don't show all default values HOT 2
- Unexpected "doubling" behavior when trying to test output HOT 1
- gmake: *** [Makefile.common:193: common-unused] Error 1 HOT 1
- Wishlist: release guesswidth as its own separate package HOT 3
- postitive integers HOT 1
- get list of values in flag HOT 1
- Readme uses `OverrideDefaultFromEnvar` which is deprecated
- Documentation of public methods on private structs is hidden HOT 2
- HintAction can break the argument order HOT 1
- "Argument list too long " The flag length limit? HOT 1
- There is a problem with flag and kingpin colleagues
- Bad boolean Flag value is interpreted as Argument HOT 1
- (Contributions only) updated
- Expand DurationVar to support days and weeks
- [bug]bool parameter, the default is true, always true,Cannot be controlled by parameters HOT 1
- Create a new tag please? HOT 4
- Regression in parsing Duration flag HOT 5
- values.go:142:25: undefined: str2duration.Str2Duration HOT 6
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kingpin.