learnbyexample/command_help
View on GitHub ↗ ★ 98 Shell
:information_source: Extract help text from builtin commands and man pages
7 mentions on Hacker News by 1 person: 0 stories, 7 comments · first 2019-02-10 · latest 2023-12-13
20082026
-
https://github.com/learnbyexample/command_help to extract description for command options (inspired by http://explainshell.com/ ) For example: $ ch rg -Mt rg - recursively search the current directory for lines matching a pattern -M NUM,…
comment by asicsp · 2023-12-13 · in Ask HN: What apps have you created for your own use? -
Parse `man` and `help` pages to get descriptions for options: https://github.com/learnbyexample/command_help $ ch ls -vx ls - list directory contents -v natural sort of (version) numbers within text -x list entries by lines instead of by…
comment by asicsp · 2023-03-13 · in Ask HN: Small scripts, hacks and automations you're proud of? -
…and some scripts in Bash/Python. 1) Extract details for command options from man/help: https://github.com/learnbyexample/command_help/blob/master/c... 2) cut-like syntax for field manipulations with regexp, negative indexing, etc:…
comment by asicsp · 2022-08-26 · in Ask HN: What do you use to make CLIs? -
https://github.com/learnbyexample/command_help/blob/master/c... Command help, inspired by http://explainshell.com/ to extract help text from builtin commands and man pages. Here's an example: $ ch ls -AXG ls - list directory contents -A,…
comment by asicsp · 2022-08-15 · in Ask HN: Can I see your scripts? -
…details. Works most of the time for me, but there are plenty of corner cases that don't work. [0] https://github.com/learnbyexample/command_help
comment by asicsp · 2022-05-30 · in Enter a command to see help text for each arg -
https://github.com/learnbyexample/command_help so that I can quickly get documentation for command options. Inspired by http://explainshell.com/ but wanted a cli tool. Fails for lot of corner cases, but still useful most of the time.…
comment by asicsp · 2021-06-12 · in Ask HN: Tools you have made for yourself? -
…offered by explainshell, there are issues with some corner cases and tested only on Ubuntu [0] https://github.com/learnbyexample/command_help
comment by asicsp · 2019-02-10 · in Explain shell