SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
dukerutledge@programming.dev to Programming@programming.devEnglish · 2 years ago

Command Line Interface Guidelines

clig.dev

external-link
message-square
14
fedilink
  • cross-posted to:
  • programming@programming.dev
  • hackernews@lemmy.smeargle.fans
  • programming@programming.dev
41
external-link

Command Line Interface Guidelines

clig.dev

dukerutledge@programming.dev to Programming@programming.devEnglish · 2 years ago
message-square
14
fedilink
  • cross-posted to:
  • programming@programming.dev
  • hackernews@lemmy.smeargle.fans
  • programming@programming.dev
An open-source guide to help you write better command-line programs, taking traditional UNIX principles and updating them for the modern day.
alert-triangle
You must log in or register to comment.
  • haruki@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

    I’ve been using this guide for writing a CLI tool for my company. Kudos to the authors for the amazing insights.

    • nivenkos@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 years ago

      FWIW a good library will do a lot of this for you - e.g. clap for Rust.

      • haruki@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        2 years ago

        Yes. I’m using Python Click FYI.

        I mean I’ve been writing a CLI tool, not a CLI engine.

  • fubo@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    If it supports -? or --help, we can figure out the rest from the copious & accessible documentation that it will give us then.

    • lorch@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      Such refreshing optimism!

      • fubo@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        2 years ago

        In other optimism, if I can apt-get install it, it has a manpage written by someone who’s at least as entertaining a writer as Larry Wall.

        • lorch@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          2 years ago

          Ok now this is venturing past Optimism into Fantasy… Is there a command line genre of fantasy?

  • 𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    2 years ago

    This looks like a fantastic resource, thank you for sharing it! Saved.

  • cosmicrose@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    This is awesome, I was looking for something like this very recently!

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 629 users / day
  • 1.86K users / week
  • 3.39K users / month
  • 7.44K users / 6 months
  • 311 local subscribers
  • 20.3K subscribers
  • 2.24K Posts
  • 35.2K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org