Hacker GitHub

← All repos

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

Mentions per year 7 mentions · busiest year 2022 (3)
20082026
  1. 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,…
  2. 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…
  3. …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?
  4. 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?
  5. …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
  6. 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.…
  7. …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