Pass Command-line Arguments to an Executable


You need to run an executable that requires command-line arguments.


With Pants, you can pass arguments directly to the process that you're executing by using the special passthrough argument --:

$ ./pants run myserver:bin -- -log.level='DEBUG'

Everything after the passthrough argument (--) will be passed directly as command-line arguments to the executable created by the myserver:bin target.

See Also

Generated by publish_docs from dist/markdown/html/src/docs/common_tasks/cli_args.html 2020-06-02T20:32:03.602577