@@ -3516,7 +3516,12 @@ pub struct AddArgs {
35163516 /// Add the requirements to the development dependency group.
35173517 ///
35183518 /// This option is an alias for `--group dev`.
3519- #[ arg( long, conflicts_with( "optional" ) , conflicts_with( "group" ) ) ]
3519+ #[ arg(
3520+ long,
3521+ conflicts_with( "optional" ) ,
3522+ conflicts_with( "group" ) ,
3523+ conflicts_with( "script" )
3524+ ) ]
35203525 pub dev : bool ,
35213526
35223527 /// Add the requirements to the package's optional dependencies for the specified extra.
@@ -3530,7 +3535,12 @@ pub struct AddArgs {
35303535 /// Add the requirements to the specified dependency group.
35313536 ///
35323537 /// These requirements will not be included in the published metadata for the project.
3533- #[ arg( long, conflicts_with( "dev" ) , conflicts_with( "optional" ) ) ]
3538+ #[ arg(
3539+ long,
3540+ conflicts_with( "dev" ) ,
3541+ conflicts_with( "optional" ) ,
3542+ conflicts_with( "script" )
3543+ ) ]
35343544 pub group : Option < GroupName > ,
35353545
35363546 /// Add the requirements as editable.
@@ -3677,11 +3687,21 @@ pub struct RemoveArgs {
36773687 pub dev : bool ,
36783688
36793689 /// Remove the packages from the project's optional dependencies for the specified extra.
3680- #[ arg( long, conflicts_with( "dev" ) , conflicts_with( "group" ) ) ]
3690+ #[ arg(
3691+ long,
3692+ conflicts_with( "dev" ) ,
3693+ conflicts_with( "group" ) ,
3694+ conflicts_with( "script" )
3695+ ) ]
36813696 pub optional : Option < ExtraName > ,
36823697
36833698 /// Remove the packages from the specified dependency group.
3684- #[ arg( long, conflicts_with( "dev" ) , conflicts_with( "optional" ) ) ]
3699+ #[ arg(
3700+ long,
3701+ conflicts_with( "dev" ) ,
3702+ conflicts_with( "optional" ) ,
3703+ conflicts_with( "script" )
3704+ ) ]
36853705 pub group : Option < GroupName > ,
36863706
36873707 /// Avoid syncing the virtual environment after re-locking the project.
0 commit comments