summaryrefslogtreecommitdiffstats
path: root/tool/make-usage.sh
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-05-11 17:00:59 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-05-11 17:00:59 +0200
commit9fc989c9e1e6e3c700059346ca205235d6dbf7a0 (patch)
tree3b8569365660a6953bc2b4726d3bbbeae08c31b0 /tool/make-usage.sh
parent4fd637775c0d66206ddf2e6652fe8402469bb7ee (diff)
tool: Generalize usage generation and document 'sqv'.
Diffstat (limited to 'tool/make-usage.sh')
-rw-r--r--tool/make-usage.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/make-usage.sh b/tool/make-usage.sh
index c9c890a2..bec96386 100644
--- a/tool/make-usage.sh
+++ b/tool/make-usage.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-sq=$1
+tool=$1
quote() {
sed 's@^@//! @' | sed 's/ $//'
@@ -23,7 +23,7 @@ dump_help() { # subcommand, indention
printf "\n$2 Subcommand$1\n\n"
fi
- help="`$sq $1 --help`"
+ help="`$tool $1 --help`"
begin_code
printf "$help\n" | tail -n +2
@@ -50,4 +50,4 @@ dump_help() { # subcommand, indention
dump_help
) | quote
-printf '\ninclude!("main.rs");\n'
+printf '\ninclude!("'"$(basename $tool)"'.rs");\n'