Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 415 Bytes

argparser.md

File metadata and controls

26 lines (20 loc) · 415 Bytes

Refrence for Arguments parser major.go

Supported data types

string

Name string `arg:"--name"` // [--name string]

bool

MilkFree bool `arg:"--use-milk"` // [--use-milk]`

int

Rounds int `arg:"-r"` // [-r 10]

[]Type (aka slice)

ages []int `arg:"--ages" split:","` // [--ages 1,2,3]
//or
ages []string `arg:"--names" split:","`