diff --git a/cmd/gotail/gotail.go b/cmd/gotail/gotail.go index c204e32..250af2a 100644 --- a/cmd/gotail/gotail.go +++ b/cmd/gotail/gotail.go @@ -14,6 +14,7 @@ func args2config() tail.Config { flag.IntVar(&config.Location, "n", 0, "tail from the last Nth location") flag.BoolVar(&config.Follow, "f", false, "wait for additional data to be appended to the file") flag.BoolVar(&config.ReOpen, "F", false, "follow, and track file rename/rotation") + flag.BoolVar(&config.Poll, "p", false, "use polling, instead of inotify") flag.Parse() if config.ReOpen { config.Follow = true