All Projects → galdor → go-cmdline

galdor / go-cmdline

Licence: ISC license
A command line parser written in Go

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-cmdline

Spectre.cli
An extremely opinionated command-line parser.
Stars: ✭ 121 (+908.33%)
Mutual labels:  command-line-parser
Konfig
Simple config properties API for Kotlin
Stars: ✭ 249 (+1975%)
Mutual labels:  command-line-parser
config-cpp
C++ Configuration management library inspired by the Viper package for golang.
Stars: ✭ 21 (+75%)
Mutual labels:  command-line-parser
Bash Argsparse
An high level argument parsing library for bash
Stars: ✭ 128 (+966.67%)
Mutual labels:  command-line-parser
Clime
⌨ The command-line interface framework for TypeScript.
Stars: ✭ 225 (+1775%)
Mutual labels:  command-line-parser
command-line-commands
Add a git-like command interface to your app.
Stars: ✭ 40 (+233.33%)
Mutual labels:  command-line-parser
Clikt
Multiplatform command line interface parsing for Kotlin
Stars: ✭ 1,658 (+13716.67%)
Mutual labels:  command-line-parser
opster
Command line parsing speedster
Stars: ✭ 52 (+333.33%)
Mutual labels:  command-line-parser
Cli Matic
Compact, hands-free [sub]command line parsing library for Clojure.
Stars: ✭ 245 (+1941.67%)
Mutual labels:  command-line-parser
args
Simple and type-safe commandline argument parser for C++14
Stars: ✭ 63 (+425%)
Mutual labels:  command-line-parser
Co
Art of C++. Flag, logging, unit-test, json, go-style coroutine and more.
Stars: ✭ 2,264 (+18766.67%)
Mutual labels:  command-line-parser
Argagg
A simple C++11 command line argument parser
Stars: ✭ 180 (+1400%)
Mutual labels:  command-line-parser
argparse dataclass
Declarative CLIs with argparse and dataclasses
Stars: ✭ 30 (+150%)
Mutual labels:  command-line-parser
Typin
Declarative framework for interactive CLI applications
Stars: ✭ 126 (+950%)
Mutual labels:  command-line-parser
argparser
Simple command-line parser for C/C++ programs
Stars: ✭ 50 (+316.67%)
Mutual labels:  command-line-parser
Programoptions.hxx
Single-header program options parsing library for C++11
Stars: ✭ 112 (+833.33%)
Mutual labels:  command-line-parser
Argumentparser
Faster, easier, more declarative parsing of command line arguments in Objective-C/Foundation.
Stars: ✭ 251 (+1991.67%)
Mutual labels:  command-line-parser
Fortran-Tools
Fortran compilers, preprocessors, static analyzers, transpilers, IDEs, build systems, etc.
Stars: ✭ 31 (+158.33%)
Mutual labels:  command-line-parser
jbock
Reflectionless command line parser
Stars: ✭ 73 (+508.33%)
Mutual labels:  command-line-parser
opzioni
The wanna-be-simplest command line arguments library for C++
Stars: ✭ 29 (+141.67%)
Mutual labels:  command-line-parser

go-cmdline

Introduction

cmdline is a Go library to parse command line options (with optional default values), arguments and subcommands.

Usage

The following example is the simplest cmdline application possible:

package main

import (
	"os"

	"github.com/galdor/go-cmdline"
)

func main() {
	cl := cmdline.New()
	cl.Parse(os.Args)
}

The resulting application handles -h and --help.

The examples directory contains examples for the various features of cmdline. You can run them with go run. Feel free to copy and use these examples in your own application.

Contact

If you have an idea or a question, email me at [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].