mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Add --config as a command-line option (#422)
This commit is contained in:
parent
bcddd9e97f
commit
6b286e9bc1
3 changed files with 10 additions and 1 deletions
|
@ -17,6 +17,9 @@ use crate::RawSettings;
|
|||
pub struct Cli {
|
||||
#[arg(required = true)]
|
||||
pub files: Vec<PathBuf>,
|
||||
/// Path to the `pyproject.toml` file to use for configuration.
|
||||
#[arg(long)]
|
||||
pub config: Option<PathBuf>,
|
||||
/// Enable verbose logging.
|
||||
#[arg(short, long)]
|
||||
pub verbose: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue