Skip to content

Commit

Permalink
Upload flag defaults to false
Browse files Browse the repository at this point in the history
With the new meaning of the upload flag, we should not do it by default,
as that would really defeat the purpose of listening to the file.
Instead, the flag will often be used by the client as a seperate
execution and upload the file while the parser is still running.

Fix #1
  • Loading branch information
ethanmick committed Jan 26, 2019
1 parent 10c4999 commit 28790e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func onChange(f string) {
func main() {
var fileFlag = flag.String("file", "", "The absolute or relative file path where the log file is located. This is useful when running on non-windows platforms where the log directory is not well known.")
var tokenFlag = flag.String("token", "", "Required: Your authentication token")
var uploadFlag = flag.Bool("upload", true, "Upload the log file instead of parsing. If provided, the client will not continue running, but will parse once, upload, and exit.")
var uploadFlag = flag.Bool("upload", false, "Upload the log file instead of parsing. If provided, the client will not continue running, but will parse once, upload, and exit.")
var versionFlag = flag.Bool("version", false, "Show the current running version")
var timerFlag = flag.Int("timer", 30, "How often do you want the log file to be read in seconds? Changing this to be higher will delay updates to gathering.gg, but will increase performance. Defaults to 30 seconds")
flag.Parse()
Expand Down

0 comments on commit 28790e9

Please sign in to comment.