Coder Social home page Coder Social logo

Comments (6)

sharkdp avatar sharkdp commented on May 21, 2024 1

@selfup Thanks for looking into this. That's a pitty. Maybe this is something that should be requested in clap.

I made some suggestions, but otherwise --c would be the easiest compromise

I'm not a big fan of adding --c, to be honest. Long -- options should be used for descriptive names.

There is a possibility to hide options in clap, so I guess we could go with your other idea and just add a second option which could be hidden.

from hexyl.

selfup avatar selfup commented on May 21, 2024 1

Let me know if those PRs resolved the issue @FauxFaux 😄

from hexyl.

sharkdp avatar sharkdp commented on May 21, 2024

I used -n for --length because that is used in hexdump. I'm okay with adding an additional alias -c.

from hexyl.

selfup avatar selfup commented on May 21, 2024

I made a small PR, but multiple shortnames does not seem to be an option for clap.

I made some suggestions, but otherwise --c would be the easiest compromise 🙏

from hexyl.

selfup avatar selfup commented on May 21, 2024

Yea hiding the --c so we can get a -c would be interesting. If I have time I'll see what can be done about an upstream to clap. Otherwise I will attempt to hide the long "fakename"

We could also have a longname like "count" that would be a viable longname

All I would need to do is: hidden(true); in the Arg definition for long("c")

Let me know if hiding works for now until a change in clap can be made/suggested with approval

from hexyl.

selfup avatar selfup commented on May 21, 2024

Ok updated my PR: #48 (comment)

🎉

from hexyl.

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.