GithubHelp home page GithubHelp logo

Add support for argument definition about cli HOT 10 CLOSED

tchap avatar tchap commented on August 15, 2024
Add support for argument definition

from cli.

Comments (10)

codegangsta avatar codegangsta commented on August 15, 2024

This is an interesting idea, I would have to give some thought on how I might want this to work

from cli.

codegangsta avatar codegangsta commented on August 15, 2024

I'm thinking something simple like:
App.ArgsHelp & Command.ArgsHelp

Will provide the functionality we would want. The default will be "[arguments...]" but can be overridden easily.

from cli.

codegangsta avatar codegangsta commented on August 15, 2024

I added a commit to this but not quite sure how I feel about it. I'm going to tag this to add later as it is not a deal breaker (the template can easily be tweaked)

from cli.

shepmaster avatar shepmaster commented on August 15, 2024

Can I customize [arguments ...] for a single command? It looks like the template is shared for all commands. As an example, I have these two commands with differing arguments:

cmd add name value
cmd rm name

I'm not sure how I could currently describe the two different sets of arguments.

from cli.

gravis avatar gravis commented on August 15, 2024

This feature would be very helpful!

from cli.

matope avatar matope commented on August 15, 2024

👍 It would be really nice to have argument difinitions!

from cli.

AudriusButkevicius avatar AudriusButkevicius commented on August 15, 2024

My pull request has some support of that, not sure if its enough though :)

from cli.

matope avatar matope commented on August 15, 2024

@AudriusButkevicius I've seen your PR. That looks very good.
It would be perfect for me if the arguments are printed in a help message.

from cli.

AudriusButkevicius avatar AudriusButkevicius commented on August 15, 2024

Feel free to fork it.
Since I have help disabled for all of my commands, and all of my commands have subcommands, there is no way to list the arguments sensibly there.

from cli.

jszwedko avatar jszwedko commented on August 15, 2024

Rolling this into #140

from cli.

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.