Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unclear whether to combine arguments that themselves have arguments in the argument to specify list of command line arguments #249

Open
eflister opened this issue Jun 6, 2022 · 0 comments

Comments

@eflister
Copy link

eflister commented Jun 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant