Giter Site home page Giter Site logo

Comments (5)

alecthomas avatar alecthomas commented on July 17, 2024

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.

lunemec avatar lunemec commented on July 17, 2024

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.

alecthomas avatar alecthomas commented on July 17, 2024

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.

lunemec avatar lunemec commented on July 17, 2024

Oh, yes, godep is just behaving not the way I expected :) Thank you!

from kingpin.

alecthomas avatar alecthomas commented on July 17, 2024

No problem!

from kingpin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.