gonetmon icon indicating copy to clipboard operation
gonetmon copied to clipboard

Use Flag to help with command line parsing

Open ScopiCisco opened this issue 7 years ago • 2 comments

Greg,

One option would be to use flags like --device, --cidr etc and then instead of being count or order dependent you can use the Flag api to parse much easier.

https://golang.org/pkg/flag/

ScopiCisco avatar Jan 17 '18 14:01 ScopiCisco

https://github.com/docopt/docopt.go

dcwangmit01 avatar Jan 17 '18 14:01 dcwangmit01

yes, I plan to do flags next

gherlein avatar Jan 17 '18 22:01 gherlein