@@ -42,6 +42,9 @@ pub struct Cli {
4242
4343#[ derive( Debug , Parser ) ]
4444pub struct SharedInitiator {
45+ /// Features to process.
46+ #[ arg( long, required = true , value_name = "[NAME]" , value_delimiter = ',' ) ]
47+ pub features : Vec < String > ,
4548 /// Number of threads to use.
4649 ///
4750 /// The default value is based on the number of logical cores.
@@ -55,6 +58,12 @@ pub struct SharedInitiator {
5558 /// Overwrite: Overwrites the original `Cargo.toml` file.
5659 #[ arg( long, value_enum, verbatim_doc_comment, default_value_t = Mode :: Overwrite ) ]
5760 pub mode : Mode ,
61+ /// Use the given symbol for indentation.
62+ #[ arg( long, value_enum, default_value_t = IndentSymbol :: Tab ) ]
63+ pub indent_symbol : IndentSymbol ,
64+ /// The number of spaces used for indentation.
65+ #[ arg( long, value_name = "SIZE" , default_value_t = 4 ) ]
66+ pub indent_size : usize ,
5867}
5968
6069#[ derive( Debug , Parser ) ]
@@ -64,9 +73,6 @@ pub struct AnalyzerInitiator {
6473 /// If `Cargo.toml` is not provided, it will be searched for under the specified path.
6574 #[ arg( value_name = "PATH" , default_value = "./Cargo.toml" ) ]
6675 pub manifest_path : PathBuf ,
67- /// Features to process.
68- #[ arg( long, required = true , value_name = "[NAME]" , value_delimiter = ',' ) ]
69- pub features : Vec < String > ,
7076 /// Determines whether to process only workspace members.
7177 #[ arg( long) ]
7278 pub workspace_only : bool ,
@@ -81,12 +87,9 @@ pub struct AnalyzerInitiator {
8187
8288#[ derive( Debug , Parser ) ]
8389pub struct ResolverInitiator {
84- /// Use the given symbol for indentation.
85- #[ arg( long, value_enum, default_value_t = IndentSymbol :: Tab ) ]
86- pub indent_symbol : IndentSymbol ,
87- /// The number of spaces used for indentation.
88- #[ arg( long, value_name = "SIZE" , default_value_t = 4 ) ]
89- pub indent_size : usize ,
90+ /// Wether to sort the required features during alignment.
91+ #[ arg( long) ]
92+ pub sort : bool ,
9093}
9194#[ derive( Clone , Debug , ValueEnum ) ]
9295pub enum IndentSymbol {
0 commit comments