-
Notifications
You must be signed in to change notification settings - Fork 7
Option clustering
h908714124 edited this page Jun 21, 2021
·
16 revisions
Option clustering for unix-type flags is supported.
Assume that mode flags -x
and -z
are defined, as well as a unary option -f
.
Then the following is valid input:
tar -xzf file.tgz
which is shorter than having to type out each option name in full:
tar -x -z -f file.tgz
The "attached" style of passing the file argument also works:
tar -xzffile.tgz
but please note that =
is not part of the syntax.
The following passes =file.tgz
as the file name, which might not be what you want:
tar -xzf=file.tgz # '=file.tgz'
Of course, when a gnu-style name like --file
is used instead of -f
, =
is valid
syntax to separate the value from the option name:
tar -xz --file=file.tgz # 'file.tgz'
Set @Command(unixClustering = false)
to disable option clustering.