diff --git a/README.md b/README.md index fe171e1..2e733be 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ The calculation for how big a file would take is effectively the largest IP - th $ cidr-encoder -h Usage of cidr-encoder: -calc - Calculate the size of the encoded file + Calculate the size of the encoded file. Reads from STDIN. -encode - Encode the CIDRs + Encode the CIDRs. Reads from STDIN. -name string - The file base name to use as the ACL file name(e.g test.acl name is test) + The file base name to use as the ACL file name(e.g test.acl name is test). -search string - Search for a IP in the CIDRs + Search for a IP in the CIDRs. ``` `-calc`, `encode`, and `search` are all mutually exclusive but the priority in the event that all are specified are `calc` then `encode` then `search`. diff --git a/cmd/cli/main.go b/cmd/cli/main.go index e2003bb..f39ba1a 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -16,10 +16,10 @@ import ( ) var ( - name = flag.String("name", "", "The file base name to use as the ACL file name(e.g test.acl name is test)") - encode = flag.Bool("encode", false, "Encode the CIDRs") - search = flag.String("search", "", "Search for a IP in the CIDRs") - calc = flag.Bool("calc", false, "Calculate the size of the encoded file") + name = flag.String("name", "", "The file base name to use as the ACL file name(e.g test.acl name is test).") + encode = flag.Bool("encode", false, "Encode the CIDRs. Reads from STDIN.") + search = flag.String("search", "", "Search for a IP in the CIDRs.") + calc = flag.Bool("calc", false, "Calculate the size of the encoded file. Reads from STDIN.") ) func main() {