@@ -67,15 +67,23 @@ pub enum Command {
6767 /// Do not try to normalise the IRI/URI when resolving
6868 #[ arg( long, default_value = "false" , visible_alias = "no-normalize" ) ]
6969 no_normalise : bool ,
70+ /// Use an index when resolving this usage
7071 #[ arg( long, default_value = Some ( DEFAULT_INDEX_URL ) ) ]
7172 use_index : Option < String > ,
73+ /// Do not use any index when resolving this usage
74+ #[ arg( long, default_value = "false" , conflicts_with = "use_index" ) ]
75+ no_index : bool ,
7276 // TODO: Add various options, such as whether to take local environment
7377 // into consideration
7478 } ,
7579 /// Update lockfile
7680 Lock {
81+ /// Use an index when updating the lockfile
7782 #[ arg( long, default_value = Some ( DEFAULT_INDEX_URL ) ) ]
7883 use_index : Option < String > ,
84+ /// Do not use any index when updating the lockfile
85+ #[ arg( long, default_value = "false" , conflicts_with = "use_index" ) ]
86+ no_index : bool ,
7987 } ,
8088 /// Add usage to project information
8189 Add {
@@ -92,6 +100,9 @@ pub enum Command {
92100 /// Use an index when resolving this usage
93101 #[ arg( long, default_value = Some ( DEFAULT_INDEX_URL ) ) ]
94102 use_index : Option < String > ,
103+ /// Do not use any index when resolving this usage
104+ #[ arg( long, default_value = "false" , conflicts_with = "use_index" ) ]
105+ no_index : bool ,
95106 } ,
96107 /// Remove usage from project information
97108 Remove {
0 commit comments