Skip to content

Commit e2359d4

Browse files
committed
styles.bash:__print_help: errors on mismatches
it now outputs visible errors on mismatches this was able to catch a mismatch in `stdinargs.bash` the code has also been reworked to be more understandable and less redundant finally it fixes a latent bug where the prior use of `segments[*]` produced invalid outputs as segment indexes are for segments, not for the concat string
1 parent b98adcb commit e2359d4

2 files changed

Lines changed: 227 additions & 177 deletions

File tree

sources/stdinargs.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function __stdinargs__help_options {
3333
--[no-]color[s]
3434
Enforce or disable colored output, by exporting \`COLOR\` as \`tes\` (if enabled) or \`no\` (if disabled).
3535
36-
--[no-]timeout[=<timeout:yes|no|max|immediate|0|<seconds>]
36+
--[no-]timeout[=<timeout:yes|no|max|immediate|0|<seconds>>]
3737
If enabled or omitted, STDIN content will be waited for \`1\` second before timing out.
3838
If disabled or \`max\`, STDIN content will wait forever and not timeout.
3939
If \`immediate\` or \`0\`, STDIN content must be immediate before timing out.

0 commit comments

Comments
 (0)