diff --git a/IPInfo.go b/IPInfo.go index 7749a39..8f0b19b 100644 --- a/IPInfo.go +++ b/IPInfo.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "os" "strings" ) @@ -26,8 +25,6 @@ type IPAddressInfo struct { func printIPInfo(input string, wantPrefixes bool) { var IPInfo IPAddressInfo = getIPInfo(input) - fmt.Printf("%+v\n", IPInfo) - os.Exit(200) var location string = IPInfo.Country + "/" + IPInfo.RegionName + "/" + IPInfo.City var bgpAS string = strings.Fields(IPInfo.AS)[0] fmt.Println("IP Address: ", IPInfo.IPAddress) diff --git a/Main.go b/Main.go index 9e5cf13..da792e3 100644 --- a/Main.go +++ b/Main.go @@ -17,6 +17,7 @@ func main() { flag.Usage = func() { fmt.Printf("Usage of iPilot: \n") + fmt.Printf("Example: iPilot -b=false -i=me -p \n") fmt.Printf(" -b bool enable/disable header (default true)\n") fmt.Printf(" -h bool view help\n") fmt.Printf(" -i string IP address or domain\n")