X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fbtr;a=blobdiff_plain;f=share%2Fbtr%2Fopt.awk;fp=share%2Fbtr%2Fopt.awk;h=cdc0b767043946201e62ba3bda7136199e596dbb;hp=0000000000000000000000000000000000000000;hb=ef064f115b81c2aeef7b0edc9e5f1d8b9d12604a;hpb=dbcbb3c734fe1ba928dc9c4819d4997eab1a8300 diff --git a/share/btr/opt.awk b/share/btr/opt.awk new file mode 100755 index 0000000..cdc0b76 --- /dev/null +++ b/share/btr/opt.awk @@ -0,0 +1,19 @@ +#!/bin/awk -f + +BEGIN { + FS="\t" +} + +{ + sub("[[:space:]]*#.*", ""); + if (NF) { + if (sub("::", "[=<", $2)) { + $2 = $2">]" + } + if (sub(":", "=<", $2)) { + $2 = $2">" + } + sub(":+", "", $1) + printf " -%s, --%-24s %s\n", $1, $2, $3 + } +}