Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
dukerutledge@programming.dev to Programming@programming.devEnglish · 2年前

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
  • programming@programming.dev
43
external-link

Command Line Interface Guidelines

clig.dev

dukerutledge@programming.dev to Programming@programming.devEnglish · 2年前
message-square
14
fedilink
  • cross-posted to:
  • programming@programming.dev
  • hackernews@lemmy.smeargle.fans
  • programming@programming.dev
  • 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 # to comment.
  • haruki@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    2年前

    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年前

      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年前

        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年前

    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年前

      Such refreshing optimism!

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

        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年前

          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年前

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

  • cosmicrose@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    2年前

    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.

  • 874 users / day
  • 1.64K users / week
  • 3.28K users / month
  • 7.55K users / 6 months
  • 173 local subscribers
  • 21.9K subscribers
  • 2.41K Posts
  • 37.1K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org