11use std:: { ffi:: OsString , path:: PathBuf } ;
22
3- use clap:: { AppSettings , Clap } ;
3+ use clap:: AppSettings ;
44use gitoxide_core as core;
55
6- #[ derive( Debug , Clap ) ]
6+ #[ derive( Debug , clap :: Parser ) ]
77#[ clap( name = "gix-plumbing" , about = "The git underworld" , version = clap:: crate_version!( ) ) ]
88#[ clap( setting = AppSettings :: SubcommandRequired ) ]
9- #[ clap( setting = AppSettings :: ColoredHelp ) ]
109pub struct Args {
1110 #[ clap( long, short = 't' ) ]
1211 /// The amount of threads to use for some operations.
@@ -41,9 +40,8 @@ pub struct Args {
4140 pub cmd : Subcommands ,
4241}
4342
44- #[ derive( Debug , Clap ) ]
43+ #[ derive( Debug , clap :: Parser ) ]
4544pub enum Subcommands {
46- #[ clap( setting = AppSettings :: ColoredHelp ) ]
4745 #[ clap( setting = AppSettings :: DisableVersionFlag ) ]
4846 PackCreate {
4947 #[ clap( long, short = 'r' ) ]
@@ -103,7 +101,6 @@ pub enum Subcommands {
103101 /// Otherwise the expansion mode is 'tree-traversal' by default.
104102 tips : Vec < OsString > ,
105103 } ,
106- #[ clap( setting = AppSettings :: ColoredHelp ) ]
107104 #[ clap( setting = AppSettings :: DisableVersionFlag ) ]
108105 #[ cfg( any( feature = "gitoxide-core-async-client" , feature = "gitoxide-core-blocking-client" ) ) ]
109106 PackReceive {
@@ -137,7 +134,6 @@ pub enum Subcommands {
137134 ///
138135 /// This is the plumbing equivalent of `git ls-remote`.
139136 /// Supported URLs are documented here: <https://www.git-scm.com/docs/git-clone#_git_urls>
140- #[ clap( setting = AppSettings :: ColoredHelp ) ]
141137 #[ clap( setting = AppSettings :: DisableVersionFlag ) ]
142138 #[ cfg( any( feature = "gitoxide-core-async-client" , feature = "gitoxide-core-blocking-client" ) ) ]
143139 RemoteRefList {
@@ -150,7 +146,6 @@ pub enum Subcommands {
150146 /// See here for a list of supported URLs: <https://www.git-scm.com/docs/git-clone#_git_urls>
151147 url : String ,
152148 } ,
153- #[ clap( setting = AppSettings :: ColoredHelp ) ]
154149 #[ clap( setting = AppSettings :: DisableVersionFlag ) ]
155150 PackIndexFromData {
156151 /// Specify how to iterate the pack, defaults to 'verify'
@@ -181,7 +176,6 @@ pub enum Subcommands {
181176 directory : Option < PathBuf > ,
182177 } ,
183178 /// Verify the integrity of a pack or index file
184- #[ clap( setting = AppSettings :: ColoredHelp ) ]
185179 #[ clap( setting = AppSettings :: DisableVersionFlag ) ]
186180 PackExplode {
187181 #[ clap( long) ]
@@ -220,7 +214,6 @@ pub enum Subcommands {
220214 object_path : Option < PathBuf > ,
221215 } ,
222216 /// Verify the integrity of a pack or index file
223- #[ clap( setting = AppSettings :: ColoredHelp ) ]
224217 #[ clap( setting = AppSettings :: DisableVersionFlag ) ]
225218 PackVerify {
226219 /// output statistical information about the pack
@@ -256,7 +249,6 @@ pub enum Subcommands {
256249 path : PathBuf ,
257250 } ,
258251 /// Verify the integrity of a commit graph
259- #[ clap( setting = AppSettings :: ColoredHelp ) ]
260252 #[ clap( setting = AppSettings :: DisableVersionFlag ) ]
261253 CommitGraphVerify {
262254 /// The path to '.git/objects/info/', '.git/objects/info/commit-graphs/', or '.git/objects/info/commit-graph' to validate.
0 commit comments