where

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5d11db8e7b09feb32abb3900863cd503447ac23c
parent 48f5447aa994235cd663703ece06600c31c78ae0
Author: aabacchus <bvnfuller@gmail.com>
Date:   Fri, 19 Mar 2021 17:23:47 +0000

add usage

Diffstat:
Mwhere.go | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/where.go b/where.go @@ -25,8 +25,15 @@ import ( "strings" ) +func usage() { + fmt.Fprintf(os.Stderr, "usage: %s\t[-h] [-k]\n", os.Args[0]) + flag.PrintDefaults() + fmt.Fprintf(os.Stderr, "\nwhere finds users who have opted in by creating a \".here\" file in their home directory,\nfinds their approximate location from their IP address, and creates a map of the locations of those users.\n") +} + func main() { apiKey := flag.String("k", "", "API key for ipstack") + flag.Usage = usage flag.Parse() ips, err := getTestIps("whoips")