Add $GITSYNC_VERBOSE to set verbosity via env
This commit is contained in:
parent
1cab59e22e
commit
310cbaea37
|
|
@ -361,7 +361,7 @@ OPTIONS
|
||||||
The username to use for git authentication (see --password-file or
|
The username to use for git authentication (see --password-file or
|
||||||
--password).
|
--password).
|
||||||
|
|
||||||
-v, --verbose <int>
|
-v, --verbose <int>, $GITSYNC_VERBOSE
|
||||||
Set the log verbosity level. Logs at this level and lower will be
|
Set the log verbosity level. Logs at this level and lower will be
|
||||||
printed. Logs follow these guidelines:
|
printed. Logs follow these guidelines:
|
||||||
|
|
||||||
|
|
|
||||||
5
main.go
5
main.go
|
|
@ -342,7 +342,8 @@ func main() {
|
||||||
flHelp := pflag.BoolP("help", "h", false, "print help text and exit")
|
flHelp := pflag.BoolP("help", "h", false, "print help text and exit")
|
||||||
flManual := pflag.Bool("man", false, "print the full manual and exit")
|
flManual := pflag.Bool("man", false, "print the full manual and exit")
|
||||||
|
|
||||||
flVerbose := pflag.IntP("verbose", "v", 0,
|
flVerbose := pflag.IntP("verbose", "v",
|
||||||
|
envInt(0, "GITSYNC_VERBOSE"),
|
||||||
"logs at this V level and lower will be printed")
|
"logs at this V level and lower will be printed")
|
||||||
|
|
||||||
flRepo := pflag.String("repo",
|
flRepo := pflag.String("repo",
|
||||||
|
|
@ -2506,7 +2507,7 @@ OPTIONS
|
||||||
The username to use for git authentication (see --password-file or
|
The username to use for git authentication (see --password-file or
|
||||||
--password).
|
--password).
|
||||||
|
|
||||||
-v, --verbose <int>
|
-v, --verbose <int>, $GITSYNC_VERBOSE
|
||||||
Set the log verbosity level. Logs at this level and lower will be
|
Set the log verbosity level. Logs at this level and lower will be
|
||||||
printed. Logs follow these guidelines:
|
printed. Logs follow these guidelines:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue