cli-guidelines VS warg

Compare cli-guidelines vs warg and see what are their differences.

cli-guidelines

A guide to help you write better command-line programs, taking traditional UNIX principles and updating them for the modern day. (by cli-guidelines)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
cli-guidelines warg
47 7
2,782 13
2.8% -
3.6 7.3
about 1 month ago about 8 hours ago
CSS Go
Creative Commons Attribution Share Alike 4.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cli-guidelines

Posts with mentions or reviews of cli-guidelines. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-06.

warg

Posts with mentions or reviews of warg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-04.
  • An Efficient Struct Configuration Pattern For Golang
    4 projects | /r/golang | 4 May 2023
    Funcopts aren't always appropriate, but boy do they make things more readable sometimes. I use them pervasively in warg to allow declarative nested CLI commands
  • Which packages do you recommend for building cli tools?
    10 projects | /r/golang | 17 Apr 2023
    I wrote my own! https://github.com/bbkane/warg/
  • Major standard library changes in Go 1.20
    5 projects | news.ycombinator.com | 16 Jan 2023
    Very useful! I'll be playing with the error tree additions and studying the HTTP interface extension to see if I can replicate the pattern for https://github.com/bbkane/warg values. Id like to be able to have value-specific output for different types of --help , even ones not in warg
  • Have you used generics?
    8 projects | /r/golang | 20 Aug 2022
    I'm using to allow for custom flag types in my CLI parsing library- a lot less duplicate code
  • Go: Functional Options Are Slow
    1 project | news.ycombinator.com | 25 May 2022
    One thing that I find nicer with functional options is building tree-like data structures.

    My command line parsing library uses them to declaratively build CLI apps with arbitrarily nested subcommands.

    Some examples at https://github.com/bbkane/warg/tree/master/examples

  • How are YOU using generics so far?
    12 projects | /r/golang | 20 May 2022
    I'm writing a CLI parsing library, and generics have let me consolidate most of the flag value functionality for different types. So the flags for dbz --level 9000 --type superSaiyan share most of the same code even though one is an int and one is a string. So much fewer copy-paste-modify lines of code now!
  • Unix command line conventions over time
    9 projects | news.ycombinator.com | 7 May 2022
    This is largely what the Azure CLI does. It simplifies even further by eliminating the no-value option. Instead, you pass "true" or "false" as the value ( --example true ). It's a little more verbose but very easy to parse/write/generate. I like this convention so much I stole it for my homemade Golang CLI parsing library https://github.com/bbkane/warg/ .

What are some alternatives?

When comparing cli-guidelines and warg you can also consider the following projects:

redox - Mirror of https://gitlab.redox-os.org/redox-os/redox

graph - A library for creating generic graph data structures and modifying, analyzing, and visualizing them.

nodejs-cli-apps-best-practices - The largest Node.js CLI Apps best practices list ✨

workgroup - Structured concurrency manager for Go

bubblewrap - Low-level unprivileged sandboxing tool used by Flatpak and similar projects

golang-generics-dao-example - Example using Generics with DAO

typer - Typer, build great CLIs. Easy to code. Based on Python type hints.

scan - Scan provides the ability to to scan sql rows directly to any defined structure.

argparse-benchmarks-rs - Collected benchmarks for arg parsing crates written in Rust [Moved to: https://github.com/rosetta-rs/argparse-rosetta-rs]

RCIG_Coordination_Repo - A Coordination repo for all things Rust Cryptography oriented

picocli - Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.

infra - Infra provides authentication and access management to servers and Kubernetes clusters.