Skip to content

Command-line argument parsing and validation for Go.

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

tokenshift/Args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Args.go

Command-line argument parsing and validation for Go.

Arguments

Args.go recognizes three types of arguments: parameters, options and flags. Flags are standalone arguments of the form "--flag" or "-f"; options are the same format, but immediately followed by a (single) value. A parameter is simply a single argument, without a leading hyphen.

Flags and options will be consumed wherever they are found in the arguments. Parameters are consumed in the order they are included on the command line.

Operations

The Args library works on an array of command-line arguments (usually os.Args[1:]). Each operation returns the argument requested, as well as the array with that argument removed, so that it can be passed to additional Arg calls.

About

Command-line argument parsing and validation for Go.

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages