Skip to content

Unity-for-Unity-Manufacturing/simple-clargs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-clargs

Simple module to manage command line args in go

Example usage

OptionInput := clargs.New("-i", "--input", "Input file path", true, true)
OptionOutput := clargs.New("-o", "--output", "Ouput file path", true, false)

options := []*clargs.Option{&OptionInput, &OptionOutput}
args := os.Args[1:]

usage := "./executable [options...]"

clargs.Init(usage, options, args)
clargs.CheckArgs()

About

Simple module to manage command line args in go

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%