Scroll
Constants
HELP_FOOTER = "A bare -N is shorthand for --lines N (e.g. -20 means --lines 20); -c and -C\nare shorthand for --color on and --color off.\n\n--fullscreen draws on the alternate screen, which uses the whole screen and\nignores -N -- except under --leave, where -N is how many lines are echoed\nonto the main screen on the way out.\n\nExamples:\n long-running-build | scroll -20 > build.log\n noisy-job | scroll --null watch the tail, discard output\n scroll -f app.log --pid $(pgrep -f app) follow a file until app exits\n du -sh * | scroll --null --sort --human keep the largest on screen\n tar cf - src | scroll --size 4G --name src watch progress with a label"
VERSION = "1.2.1"
Class methods
run(args = ARGV.dup) : Nil
dispatch handles --help, --version, the shell-completion install flag, and
parse/validation errors (reported as scroll: message, exit 1). The bare -N
shorthand is expanded first, since the parser has no numeric flag names.