@@ -54,20 +54,20 @@ pub struct Args {
5454 command : ArtifactCommands ,
5555
5656 /// Run Mode.
57- #[ clap( long, env = "RUN_MODE" , default_value = "dev" ) ]
57+ #[ clap( long, env = "RUN_MODE" , default_value = "dev" , global = true ) ]
5858 run_mode : String ,
5959
6060 /// Verbosity level (-v=warning, -vv=info, -vvv=debug, -vvvv=trace).
61- #[ clap( short, long, action = clap:: ArgAction :: Count ) ]
61+ #[ clap( short, long, action = clap:: ArgAction :: Count , global = true ) ]
6262 #[ example = "Parsed from the number of occurrences: `-v` for `Warning`, `-vv` for `Info`, `-vvv` for `Debug` and `-vvvv` for `Trace`" ]
6363 verbose : u8 ,
6464
6565 /// Directory where configuration file is located.
66- #[ clap( long, default_value = "./config" ) ]
66+ #[ clap( long, default_value = "./config" , global = true ) ]
6767 pub config_directory : PathBuf ,
6868
6969 /// Override configuration Aggregator endpoint URL.
70- #[ clap( long, env = "AGGREGATOR_ENDPOINT" ) ]
70+ #[ clap( long, env = "AGGREGATOR_ENDPOINT" , global = true ) ]
7171 #[ example = "`https://aggregator.pre-release-preview.api.mithril.network/aggregator`" ]
7272 aggregator_endpoint : Option < String > ,
7373
@@ -76,20 +76,20 @@ pub struct Args {
7676 json : bool ,
7777
7878 /// Enable JSON output for logs displayed according to verbosity level
79- #[ clap( long) ]
79+ #[ clap( long, global = true ) ]
8080 log_format_json : bool ,
8181
8282 /// Redirect the logs to a file
83- #[ clap( long, alias( "o" ) ) ]
83+ #[ clap( long, alias( "o" ) , global = true ) ]
8484 #[ example = "`./mithril-client.log`" ]
8585 log_output : Option < String > ,
8686
8787 /// Enable unstable commands
88- #[ clap( long) ]
88+ #[ clap( long, global = true ) ]
8989 unstable : bool ,
9090
9191 /// Request origin tag
92- #[ clap( long) ]
92+ #[ clap( long, global = true ) ]
9393 origin_tag : Option < String > ,
9494}
9595
0 commit comments