-
Notifications
You must be signed in to change notification settings - Fork 7
Option clustering
h908714124 edited this page Aug 27, 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.tgzwhich is shorter than having to type out each option name in full:
tar -x -z -f file.tgzThe "attached" style of passing the file argument also works:
tar -xzffile.tgzbut please note that = is not part of the syntax.
The following would pass the file name =file.tgz, which is probably not intended.
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.