Skip to content

Commit

Permalink
Fix argument conflict in rye init
Browse files Browse the repository at this point in the history
I found this error when running rye init:

Command init: Argument or group 'no-import' specified in
'conflicts_with*' for 'REQUIREMENTS_FILE' does not exist'

and this seems to address it.
  • Loading branch information
bluss committed Jun 23, 2023
1 parent 4afe320 commit 6f2db57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rye/src/cli/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ pub struct Args {
#[arg(long)]
no_import: bool,
/// Requirements files to initialize pyproject.toml with.
#[arg(short, long, name = "REQUIREMENTS_FILE", conflicts_with = "no-import")]
#[arg(short, long, name = "REQUIREMENTS_FILE", conflicts_with = "no_import")]
requirements: Option<Vec<PathBuf>>,
/// Development requirements files to initialize pyproject.toml with.
#[arg(long, name = "DEV_REQUIREMENTS_FILE", conflicts_with = "no-import")]
#[arg(long, name = "DEV_REQUIREMENTS_FILE", conflicts_with = "no_import")]
dev_requirements: Option<Vec<PathBuf>>,
/// Enables verbose diagnostics.
#[arg(short, long)]
Expand Down

0 comments on commit 6f2db57

Please sign in to comment.