man break
(in this case fetches and formats entry from ss64.com)
man break -l
(use local help only, in this case it executes shell command break /?)
LlaMan serves as something like man pages in Linux. It either tries to get info from command line parameters (like --help or /?) or from ss64.com. The latter gets printed in Windows console with as much formatting as possible - and it's easily configurable!
For local help pages it simply tries to run command with following parameters: -h
, --help
, /?
and without parameters - both as executable (exec
method) and shell commands (shell_exec
method). Then it assumes that the longest output is correct one. If there's page about particular command on ss64.com, it fetches the page, caches it, formats and displays it.
-
PHP (tested on 7.4)
-
WIndows 10 (or older with ANSICon)
-
Get the repository
-
Set path to
man.php
inman.bat
-
Move
man.bat
to any directory in your PATH enviroment variable -
Start using!
This instruction assumes script already "installed" (points 2-3 in Installation chapter). If not, just change man
to php c:\some_path\man.php
.
Basic usage:
man **command**
where command* is a name of command you want to see help for.
Additional parameters
Options: -s, --style[=default] changes print style
-S, --list-styles
list available styles
-l, --local
prefer local help
-n, --nocache
don't cache results
-p, --purge
purge cache for particular command
-b, --browser
open ss64.com result in browser, if available
-u, --update
check for updates
-v, --verbose
verbose mode
-h, --help
shows help screen
[to add later/for now consult man.php
and style.*.php
files.
[to describe laterl; for now check out emulateHeader()
callback in man.php
]
-
max cache time
-
clean code
-
display time of ss64 cache
-
allow loading local files, just like manpages
-
remove leftover tags
-
ability to ignore non zero errorcodes
-
allow choice of non-longest help
-
display raw HTML for ss64
-
scroll up/down ability
-
-i / --install to generate batch file