diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-21 00:35:13 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-21 00:35:13 +0200 |
commit | c3c4b8c6b4556e01770a75da4b6fbf8e1eba9ce4 (patch) | |
tree | 006d8799585d86557e570f03af93b112a079a697 /bin/menuscripts/mhelp | |
parent | 39a6cea6f2f198aa08189d345e0281a591d17ec4 (diff) | |
parent | 3d253cd428e2769e0449fbf0c3ece5c0ab41545c (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/menuscripts/mhelp')
-rwxr-xr-x | bin/menuscripts/mhelp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/menuscripts/mhelp b/bin/menuscripts/mhelp index 339d6bf..cb7977b 100755 --- a/bin/menuscripts/mhelp +++ b/bin/menuscripts/mhelp @@ -1,16 +1,16 @@ #!/usr/bin/env sh -program="$(commander -r -c -d)" +program="$(commander -rcd)" [ "$program" ] || exit 1 option="$("$program" --help | # Parse options - grep "^ *-[-a-zA-Z0-9]* " | + grep -- "^ *-[-a-zA-Z0-9]* " | tr -s ' ' | sort | uniq | column -l 2 -t | - commander -l -x -c -d | + commander -lxcd | awk '{print $1}')" [ "$option" ] || exit 1 |