Search code examples
shellgnu-parallel

GNU parallel double-dashed options not working


I am trying to run the following very simple parallel script:

 parallel --eta -j 1 -- "echo hi"

but I get an error

parallel: invalid option -- '-'
parallel [OPTIONS] command -- arguments
    for each argument, run command with argument, in parallel
parallel [OPTIONS] -- commands
    run specified commands in parallel

This happens for every double-dashed option I try to use


Solution

  • You are using Tollef's parallel from Moreutils, and not GNU Parallel.