consistent option documentation
This commit is contained in:
parent
3b64702955
commit
282de09301
3
README
3
README
@ -60,7 +60,8 @@ before it is executed.
|
|||||||
|
|
||||||
Options must come as the first argument, and may be merged together, such as -xn.
|
Options must come as the first argument, and may be merged together, such as -xn.
|
||||||
|
|
||||||
-h, --help: displays help message, similarly to empty input.
|
-v, --version: display versioning and licensing information.
|
||||||
|
-h, --help: display the help message, similarly to empty input.
|
||||||
-n, --dry-run: DRYRUN, does NOT run anything!
|
-n, --dry-run: DRYRUN, does NOT run anything!
|
||||||
-x, --expunge: See above Expunge Extension section.
|
-x, --expunge: See above Expunge Extension section.
|
||||||
|
|
||||||
|
2
bake.1
2
bake.1
@ -20,7 +20,7 @@ please avoid its use.
|
|||||||
Options [Must always be put first, may be merged together]
|
Options [Must always be put first, may be merged together]
|
||||||
|
|
||||||
.HP
|
.HP
|
||||||
.B \-v \-\-version, \-h \-\-help, \-n \-\-dry\-run
|
.B \-v \-\-version, \-h \-\-help, \-n \-\-dry\-run, \-x \-\-expunge
|
||||||
.PP
|
.PP
|
||||||
Expansions
|
Expansions
|
||||||
|
|
||||||
|
29
bake.c
29
bake.c
@ -39,20 +39,21 @@
|
|||||||
"Use the format `" BOLD "@BAKE" RESET " cmd ...' within the target-file, this will execute the\n" \
|
"Use the format `" BOLD "@BAKE" RESET " cmd ...' within the target-file, this will execute the\n" \
|
||||||
"rest of line, or if found within the file, until the " BOLD "@STOP" RESET " marker.\n" \
|
"rest of line, or if found within the file, until the " BOLD "@STOP" RESET " marker.\n" \
|
||||||
|
|
||||||
#define DESC \
|
#define DESC \
|
||||||
"Options [Must always be put first, may be merged together]\n" \
|
"Options [Must always be put first, may be merged together]\n" \
|
||||||
"\t" DIM "-h --help" RESET", " BOLD "-n --dry-run" RESET ", " BOLD "-x --expunge\n" RESET \
|
"\t" DIM "-v --version" RESET ", " DIM "-h --help" RESET ", " \
|
||||||
"Expansions\n" \
|
BOLD "-n --dry-run" RESET ", " BOLD "-x --expunge\n" RESET \
|
||||||
"\t" YELLOW "@FILENAME" RESET " returns target-file (abc.x.txt)\n" \
|
"Expansions\n" \
|
||||||
"\t" YELLOW "@SHORT " RESET " returns target-file without suffix (^-> abc.x)\n" \
|
"\t" YELLOW "@FILENAME" RESET " returns target-file (abc.x.txt)\n" \
|
||||||
"\t" YELLOW "@ARGS " RESET " returns " GREEN "arguments" RESET "\n" \
|
"\t" YELLOW "@SHORT " RESET " returns target-file without suffix (^-> abc.x)\n" \
|
||||||
"Additional Features And Notes\n" \
|
"\t" YELLOW "@ARGS " RESET " returns " GREEN "arguments" RESET "\n" \
|
||||||
"\t" YELLOW "@{" RESET BOLD "EXPUNGE_THIS_FILE" YELLOW "}" RESET \
|
"Additional Features And Notes\n" \
|
||||||
" inline region to delete this or many files or directories,\n" \
|
"\t" YELLOW "@{" RESET BOLD "EXPUNGE_THIS_FILE" YELLOW "}" RESET \
|
||||||
"\tnon-recursive, only one file per block, removed from left to right. This has no\n" \
|
" inline region to delete this or many files or directories,\n" \
|
||||||
"\tinfluence on the normal command execution.\n" \
|
"\tnon-recursive, only one file per block, removed from left to right. This has no\n" \
|
||||||
"\t" YELLOW "\\" RESET \
|
"\tinfluence on the normal command execution.\n" \
|
||||||
"SPECIAL_NAME will result in SPECIAL_NAME in the executed shell command.\n" \
|
"\t" YELLOW "\\" RESET \
|
||||||
|
"SPECIAL_NAME will result in SPECIAL_NAME in the executed shell command.\n" \
|
||||||
"Backslashing is applicable to all meaningful symbols in Bake, it is ignored otherwise."
|
"Backslashing is applicable to all meaningful symbols in Bake, it is ignored otherwise."
|
||||||
|
|
||||||
#define COPYRIGHT "2023 Emil Williams"
|
#define COPYRIGHT "2023 Emil Williams"
|
||||||
|
Loading…
Reference in New Issue
Block a user