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

feat: Support response files #118

Open
enricosada opened this issue Sep 12, 2018 · 2 comments
Open

feat: Support response files #118

enricosada opened this issue Sep 12, 2018 · 2 comments

Comments

@enricosada
Copy link
Contributor

enricosada commented Sep 12, 2018

Add builtin support for response files, enabled by a simple configuration.

Response files is a way to write arguments to a file, instead of pass as command line args.

Like https://docs.microsoft.com/en-us/windows/desktop/midl/response-files

Pratically:

  • simple rsp program @path/to/responsefile.rsp will load args from {workDir}/path/to/responsefile.rsp.
  • one argument per line
  • lines who starts with # are comments
  • multiple rsp program @a.rsp @b.rsp will load args first from a.rsp and after these from b.rsp
  • rsp can be mixed with normal args like program @a.rsp --verbosity low @b.rsp --trace
  • rsp can be quoted with double quotes for path with spaces, like program "@path/to/the file.rsp" (or should be @"path/to/the file.rsp" ? )
  • how to escape? program @@a.rsp??

I am missing something? escape ok, quoting ok...

@jcmrva
Copy link

jcmrva commented Mar 6, 2019

Can a response file can do anything significant that an AppSettings file can't?

@enricosada
Copy link
Contributor Author

It's different, response files are useful mostly for tooling.

as a note, windows has a max length for command line arguments.

Tooling write args to a file, and invoke the exe with @path/to.rsp.
That's useful because sometimes arguments can be really long (for example a list of files with full path)

Are nice for users too, to refactor common arguments (like @debug.rsp) to enable a list of args for a configuration.

@bartelink bartelink changed the title Support response files feat: Support response files Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants