News for hackers. Stuff that matters.
Re:CLI Guidelines – A guide to help you write better command... by tartoran on Saturday December 05, 2020 @01:05PM (#25316710)
I think (correct me if im wrong) tools shells like fish and zsh use the man pages to extract the param suggestions. That saves me so much time
Re:CLI Guidelines – A guide to help you write better command... by bewuethr on Saturday December 05, 2020 @02:35PM (#25317585)
Bash-completion does something like this for commands with consistent --help output (most Coreutils, bash, awk, grep, sed...) by parsing it in the completion function: https://github.com/scop/bash-completion/blob/29508ce70914f78...