Giter VIP home page Giter VIP logo

Comments (7)

jasonpeacock avatar jasonpeacock commented on May 18, 2024 1

working on this now, will use the suggested -u --time-unit <millisecond|second|...> options

from hyperfine.

sharkdp avatar sharkdp commented on May 18, 2024

Thank you for the feedback!

If this only affects the CLI and the Markdown export, this sounds good to me.

I'd suggest -u --time-unit <millisecond|second|...>.

from hyperfine.

jasonpeacock avatar jasonpeacock commented on May 18, 2024

That makes sense. I'll start work on this when I finish #71.

from hyperfine.

hashimaziz1 avatar hashimaziz1 commented on May 18, 2024

I would also look forward to this, but instead of --time-unit can shorter options be preferred like -t? Long options are a lot more work, and I don't understand why some CLI programs insist on preferring long options before all of the short alternatives have been exhausted.

from hyperfine.

sharkdp avatar sharkdp commented on May 18, 2024

I'm okay with a short option. I just suggested -u (for "unit", there are no other units in hyperfine) instead of -t.

Long options are a hell of a lot of work, and I don't understand why some CLI programs insist on preferring long options before all of the short alternatives have been exhausted.

I typically add long command-line options to my programs because they have a self-documenting property which is great for usage in scripts.

Short options are great for interactive use of often-used features, but I tend to also be hesitant when adding new short flags because the namespace is really small and there might be better uses for a flag in the future. For rarely-used features (like hyperfines --export-* <FILE> flags), I think its perfectly fine to not have a short option because nobody will remember them anyway.

from hyperfine.

jasonpeacock avatar jasonpeacock commented on May 18, 2024

PR submitted.

from hyperfine.

sharkdp avatar sharkdp commented on May 18, 2024

Released in v1.4.0.

from hyperfine.

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.