diff options
| -rw-r--r-- | cmd_linux.go | 2 | ||||
| -rw-r--r-- | flags.go | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/cmd_linux.go b/cmd_linux.go index 5cb48a4..0bc4b69 100644 --- a/cmd_linux.go +++ b/cmd_linux.go @@ -17,8 +17,6 @@ import ( var ( hostDir = flag.String("host", "/host", "Host source directory (read-only)") dataDir = flag.String("data", "/data", "Data destination directory") - verbose = flag.Bool("verbose", false, "Enable verbose logging (shorthand for -log-level debug)") - logLevel = flag.String("log-level", "info", "Log level: debug, info, warn, error, none") dryRun = flag.Bool("dry-run", false, "Preview what would be synced without copying") socketPath = flag.String("socket", "", "Unix socket to receive events from (Windows watcher)") ) diff --git a/flags.go b/flags.go new file mode 100644 index 0000000..7235bc8 --- /dev/null +++ b/flags.go @@ -0,0 +1,8 @@ +package main + +import "flag" + +var ( + verbose = flag.Bool("verbose", false, "Enable verbose logging (shorthand for -log-level debug)") + logLevel = flag.String("log-level", "info", "Log level: debug, info, warn, error, none") +) |
