diff options
author | Teddy Wing | 2023-11-14 01:30:23 +0100 |
---|---|---|
committer | Teddy Wing | 2023-11-14 01:34:25 +0100 |
commit | 8d8fa84f4f336f7a2e43acf7ca0c417299df8f8b (patch) | |
tree | 7b830e8f67f73306a1a717d009ff697e671ecbfb /go.mod | |
parent | 1e4dd35a450bddbb519fc54b52f9486627075e9c (diff) | |
download | swextreload-8d8fa84f4f336f7a2e43acf7ca0c417299df8f8b.tar.bz2 |
main: Add basic command line argument parsing
Found Claw from a search for "argument parser" on https://godocs.io. I
did a quick comparison with a few other argument parsing libraries I
found in a GitHub search:
* https://github.com/alexflint/go-arg
* https://github.com/docopt/docopt.go
* https://github.com/fred1268/go-clap
Claw ended up being the most straightforward to me.
Diffstat (limited to 'go.mod')
-rw-r--r-- | go.mod | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,10 +2,13 @@ module gopkg.teddywing.com/swextreload go 1.21.4 -require github.com/chromedp/chromedp v0.9.3 +require ( + git.sr.ht/~liliace/claw v0.1.1 + github.com/chromedp/cdproto v0.0.0-20231011050154-1d073bb38998 + github.com/chromedp/chromedp v0.9.3 +) require ( - github.com/chromedp/cdproto v0.0.0-20231011050154-1d073bb38998 // indirect github.com/chromedp/sysutil v1.0.0 // indirect github.com/gobwas/httphead v0.1.0 // indirect github.com/gobwas/pool v0.2.1 // indirect |