diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-19 11:22:31 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-19 11:22:31 +0200 |
commit | 067b07eb24262b34c00fe7be786cbdcfcd6383c6 (patch) | |
tree | 6bb3d51de3cccd6a12a223075436cf484cbe5ac6 /bin/menuscripts | |
parent | 9928d64cd712a25634481e81d67d2537ccdaf4df (diff) |
refactor
Diffstat (limited to 'bin/menuscripts')
-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 |