Skip to content

Commit

Permalink
Add a command-line option for format
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Jan 25, 2024
1 parent 5547e74 commit 46bfe77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func newConfig() *config {
flag.BoolVar(&c.foreground, "foreground", false, "run in foreground mode")
flag.BoolVar(&c.verbose, "verbose", false, "verbose mode")
flag.StringVar(&c.logFile, "log", "", "a file path to write the log")
flag.StringVar(&c.format, "format", "auto", "an output format: auto, bash, zsh, csh, tcsh, or fish")
flag.BoolVar(&c.stop, "stop", false, "stop the daemon and exit")
flag.BoolVar(&c.version, "version", false, "print version and exit")

Expand Down

0 comments on commit 46bfe77

Please sign in to comment.