- Getting Started
- Installing Pants
- Setting Up Pants
- Tutorial
- Common Tasks
- Pants for Organizations
- Pants Basics
- Why Use Pants?
- Pants Concepts
- BUILD files
- Target Addresses
- Third-Party Dependencies
- Pants Options
- Invoking Pants
- Reporting Server
- IDE Support
- JVM Support
- Python Support
- Go support for Pants
- Node.js Support
- Code & Doc Generation
- Thrift
- Python gRPC + protobufs
- Markdown
- Getting Help
- Troubleshooting
- Community
- Reference
- Pants BUILD Dictionary
- Pants Reference
- Release Notes
- Developer
- Pants Developer Center
- Export Format
- Architecture
- Blogs
- Twitter's Coursier Migration
Pass Command-line Arguments to an Executable
Problem
You need to run an executable that requires command-line arguments.
Solution
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 2022-12-03T01:08:59.429940
