unclear whether to combine arguments that themselves have arguments in the argument to specify list of command line arguments
- Dominant language
- Haskell
- Stars
- 91
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Description
the most it is explained in the doc is "A list of separate command line arguments to the program"
i was using:
`readProcessWithExitCode "ffmpeg" ["-i", d, "-c copy", f] ""`
and getting an error:
```
Unrecognized option 'c copy'.
Error splitting the argument list: Option not found
```
very confusing because executing the command in a terminal manually gave no error.
i only luckily happened to try the solution that works:
`readProcessWithExitCode "ffmpeg" ["-i", d, "-c", "copy", f] ""`
this is ffmpeg 4.4.1 on osx 11.6.6 and stack
`Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the documentation for readProcessWithExitCode and compare its wording with the two argument-list examples in this report. Update the explanation so that each list element is an individual command-line argument, then verify the documented example matches the working ffmpeg invocation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- cli, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100