Skip to content

Commit cb22a80

Browse files
Update manual.
1 parent 47859c5 commit cb22a80

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/generate_manual.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ VERSION=$($RUST_PARALLEL -V | cut -f2 -d' ')
99
echo "## Manual for rust-parallel $VERSION"
1010

1111
echo '
12-
1. [Command line](#command-line)
12+
1. [Command line options](#command-line-options)
1313
1. [Commands from arguments](#commands-from-arguments)
1414
1. [Commands from stdin](#commands-from-stdin)
1515
1. [Command and initial arguments on command line](#command-and-initial-arguments-on-command-line)
@@ -33,7 +33,7 @@ echo '
3333
1. [Demo of function and initial arguments on command line, additional arguments from stdin](#demo-of-function-and-initial-arguments-on-command-line-additional-arguments-from-stdin)
3434
'
3535

36-
echo '## Command line'
36+
echo '## Command line options'
3737

3838
echo '```
3939
$ rust-parallel --help'
@@ -58,6 +58,14 @@ echo '
5858
$ rust-parallel gzip -k ::: *.html
5959
```'
6060

61+
echo 'Variables `{0}`, `{1}`, etc are automatically available based on the number of arguments. `{0}` will be replaced by the entire input line, and other groups match individual argument groups This is useful for building more complex command lines. For example:
62+
'
63+
64+
echo '````
65+
$ rust-parallel echo group0={0} group1={1} group2={2} group3={3} group2again={2} ::: A B ::: C D ::: E F G'
66+
$RUST_PARALLEL echo group0={0} group1={1} group2={2} group3={3} group2again={2} ::: A B ::: C D ::: E F G
67+
echo '```'
68+
6169
echo '## Commands from stdin
6270
6371
Run complete commands from stdin.

0 commit comments

Comments
 (0)