Closed bgentry closed 11 years ago
Fixed the help text and the logic. Time to :ship:
You could check the TTYness of stdout to determine how to behave. If it's a TTY, it should follow indefinitely. If it's not, you should get the last N lines and exit.
Both behaviors are reasonable regardless of whether output is a tty. It's simpler to pick one default and let the user choose explicitly.
Default to streaming output of all application log lines. Providing
-n
limits the number of lines of output, and also avoids streaming new lines.Fixes #88. Replaces #90.