bdep-argument-grouping(1)
π bdep-argument-grouping β argument grouping facility π
okay bestie, welcome to the bdep-argument-grouping(1) page, straight outta the General Commands Manual β¨ this is the little help topic that explains the argument grouping facility β aka the glow-up that lets you make certain options and command line variables apply to just one argument instead of the whole entire command. iykyk π«Ά
β¨ SYNOPSIS β¨
bdep { options }+ argument +{ options }
πΈ DESCRIPTION πΈ
okay so here's the tea π: for certain commands, certain options and command line variables can be grouped so they only apply to specific arguments. that's literally what this help topic is about β the argument grouping facility used for exactly this purpose.
groups can go before (leading) and/or after (trailing) the argument they apply to. a leading group starts with { and ends with }+, while a trailing group starts with +{ and ends with }. for example:
{ --foo --bar }+ arg # 'arg' with '--foo' '--bar'
arg +{ fox=1 baz=2 } # 'arg' with 'fox=1' 'baz=2'
multiple leading and/or trailing groups can be specified for the same argument π no cap. for example:
{ -f }+ { -b }+ arg +{ f=1 } +{ b=2 } # 'arg' with '-f' 'b' 'f=1' 'b=2'
the group applies to a single argument only unless multiple arguments are themselves grouped with { and }. for example:
{ --foo }+ arg1 arg2 +{ --bar } # 'arg1' with '--foo'
# 'arg2' with '--bar'
{ --foo }+ { arg1 arg2 } +{ --bar } # 'arg1' with '--foo' '--bar'
# 'arg2' with '--foo' '--bar'
π the group separators ({,}+, etc) must be separate command line arguments. in particular, they must not be adjacent either to the arguments inside the group nor to the argument they apply to. all such cases will be treated as ordinary arguments. for example:
{--foo}+ arg # '{--foo}+' ...
arg+{ --foo } # 'arg+{' ...
if one of the group separators needs to be specified as an argument verbatim, then it must be escaped with \. for example:
} # error: unexpected group separator
}x # '}x'
\} # '}'
{ \}+ }+ arg # 'arg' with '}+'
π BUGS π
found a bug? send bug reports to the users@build2.org mailing list π¬ bestie, they wanna hear about it.
π COPYRIGHT π
Copyright (c) 2014-2024 the build2 authors.
Permission is granted to copy, distribute and/or modify this document under the terms of the MIT License.
and that's the whole vibe check π
this was bdep 0.17.0, June 2024, signing off like the icon it is β stay grouped, stay slay π¦π
π¦ where this page comes from
- fedora 43: bdep 0.17.0-5.fc43 Β· MIT
- fedora 44: bdep 0.17.0-7.fc44 Β· MIT
- nixos 26.05: bdep 0.17.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms