We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16c3c46 commit 83dc874Copy full SHA for 83dc874
cmd/putio-sync/main.go
@@ -36,6 +36,8 @@ var (
36
dryrun = flag.Bool("dryrun", false, "do not make changes on filesystems")
37
repeat = flag.Duration("repeat", 0, "sync repeatedly, pause given duration between syncs")
38
server = flag.String("server", "", "listen address for HTTP API")
39
+
40
+ printConfigPath = flag.Bool("print-config-path", false, "print config path")
41
)
42
43
var (
@@ -93,6 +95,10 @@ func main() {
93
95
log.Fatal(err)
94
96
}
97
98
+ if *printConfigPath {
99
+ fmt.Println(configPath)
100
+ return
101
+ }
102
log.Infof("Using config file %q", configPath)
103
if err = readConfig(configPath, *configFlag != ""); err != nil {
104
0 commit comments