parent
e4498adb1f
commit
8cf3ef895d
|
@ -3,7 +3,7 @@ set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
usage=$(cargo -q run -p solana-cli -- -C ~/.foo --help | sed 's|'"$HOME"'|~|g')
|
usage=$(cargo -q run -p solana-cli -- -C ~/.foo --help | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')
|
||||||
|
|
||||||
out=${1:-src/cli/usage.md}
|
out=${1:-src/cli/usage.md}
|
||||||
|
|
||||||
|
@ -29,6 +29,6 @@ in_subcommands=0
|
||||||
while read -r subcommand rest; do
|
while read -r subcommand rest; do
|
||||||
[[ $subcommand == "SUBCOMMANDS:" ]] && in_subcommands=1 && continue
|
[[ $subcommand == "SUBCOMMANDS:" ]] && in_subcommands=1 && continue
|
||||||
if ((in_subcommands)); then
|
if ((in_subcommands)); then
|
||||||
section "$(cargo -q run -p solana-cli -- help "$subcommand" | sed 's|'"$HOME"'|~|g')" "####" >> "$out"
|
section "$(cargo -q run -p solana-cli -- help "$subcommand" | sed -e 's|'"$HOME"'|~|g' -e 's/[[:space:]]\+$//')" "####" >> "$out"
|
||||||
fi
|
fi
|
||||||
done <<<"$usage">>"$out"
|
done <<<"$usage">>"$out"
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue