Skip to content

Commit

Permalink
Merge pull request #14 from surajsharma/8-cmd-uuids-in-help-strings
Browse files Browse the repository at this point in the history
worker name flag override
  • Loading branch information
surajsharma authored Feb 24, 2025
2 parents d51e0ae + 328c659 commit 59404e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func init() {
workerCmd.Flags().StringP("host", "H", "0.0.0.0", "Hostname or IP address")
workerCmd.Flags().IntP("port", "p", 5556, "Port on which to listen")
workerCmd.Flags().StringP("name", "n", fmt.Sprintf("worker-%s", uuid.New().String()), "Name of the worker")
workerCmd.Flags().Lookup("name").DefValue = "worker-[uuid]"

workerCmd.Flags().StringP("dbtype", "d", "memory", "Type of datastore for tasks (\"memory\" or \"persistent\")")

}

0 comments on commit 59404e1

Please sign in to comment.