• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    15
    ·
    2 days ago

    In the same way some GUIs are trash, lord have mercy some CLIs are trash. Things like adding two verbose flags makes it extra verbose. Things like the parameter order mattering. Yeesh. It can be rough. It really varies tool by tool.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        20 hours ago

        Yeah, I guess that’s true. I suppose given more time to think about it I wouldn’t really complain about that. It’s mostly things like script in out that are sort of annoying versus something like script --in foo --out bar.

        • kunaltyagi@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          20 hours ago

          I believe API (CLI or programmatic) should never have 2 arguments of the same type but different roles next to each other without visual cues.

          No fn("in.txt", "out.txt") and no script in out