summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Breitwieser2021-08-03 14:16:29 +0200
committerOliver Breitwieser2021-08-03 14:16:29 +0200
commit93d31162a1ae5dc2c73b15e73066b9f644a37b3b (patch)
tree7e519bf9841048f458f629c727a7f1c366770892
parent765e79da09d643ba1a2d41676c25cb552b443a2a (diff)
downloadaur-93d31162a1ae5dc2c73b15e73066b9f644a37b3b.tar.gz
Add more helpful comment
-rw-r--r--PKGBUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 453043bfd3c1..0e38427b9cb9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,6 +20,7 @@ build() {
_folder_man=target/release/man
mkdir -p ${_folder_man}/man1
help2man "${_path_bin}" > ${_folder_man}/man1/${pkgname}.1
+ # Generate info about all subcommands except for 'help' (which leads to error)
"${_path_bin}" --help | awk 'enabled && $1 != "help" { print $1 } /^SUBCOMMANDS:$/ { enabled=1 }' \
| while read -r cmd; do
help2man "$_path_bin $cmd" > ${_folder_man}/man1/${pkgname}-${cmd}.1