Skip to content

Commit

Permalink
Updated help message
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Aug 10, 2016
1 parent ddfdb21 commit 957284f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,9 @@ func main() {
flag.StringVar(&RuntimeArgs.SourcePath, "data", "", "path to data folder")
flag.CommandLine.Usage = func() {
fmt.Println(`find (version ` + VersionNum + ` (` + Build[0:8] + `), built ` + BuildTime + `)
run this to start the server and then visit localhost at the port you specify
(see parameters).
Example: 'find yourserver.com'
Example: 'find -p :8080 localhost:8080'
Example: 'find -s /var/run/find.sock'
Example: 'find -p :8080 -crt ssl/server.crt -key ssl/server.key localhost:8080'
Example: 'findserver yourserver.com'
Example: 'findserver -p :8080 localhost:8080'
Example (mosquitto): 'findserver -mqtt 127.0.0.1:1883 -mqttadmin admin -mqttadminpass somepass -mosquitto ` + "`pgrep mosquitto`" + `
Options:`)
flag.CommandLine.PrintDefaults()
}
Expand Down

0 comments on commit 957284f

Please sign in to comment.