1
0
mirror of https://git.lain.church/bake/bake.git synced 2025-06-17 02:57:57 +00:00

documentation, support for disabled options

This commit is contained in:
2024-09-27 04:44:56 +00:00
parent 8179969546
commit 9eed5ea797
3 changed files with 37 additions and 84 deletions

7
bake.1
View File

@ -1,4 +1,4 @@
.TH BAKE "1" "August 2024" "bake 20240804" "User Commands"
.TH BAKE "1" "August 2024" "bake 20240927" "User Commands"
.SH NAME
.B bake
\- file embeddable scripts
@ -19,7 +19,6 @@ It roots the shell execution in the directory of the given file.
Options must always be put first, and short options may be merged together, numerical options must be trailing.
.HP
\fB\-c \-\-color\fP, Disables color
\-h \-\-help, Help message
\fB\-n \-\-dry\-run\fP, don't execute anything
\fB\-l \-\-list\fP, lists available shell commands
@ -34,12 +33,12 @@ done by a leading backslash, which are NOT subtracted.
These macros will expand to their counterpart before execution.
.TP
.B @FILE, @FILENAME, @NAME, $@
.B @FILENAME, @FILE, @NAME, $@
returns target\-file (abc.x.txt)
.TP
.B @SHORT, $*
returns target\-file without suffix (abc.x.txt \-> abc.x)
supports choice syntax, @SHORT:1
supports choice syntax, @SHORT:N removes N suffixes, so (a.b.c 2 -> a)
.TP
.B @ARGS, $+
returns