@@ -54,20 +54,20 @@ pub struct Args {
54
54
command : ArtifactCommands ,
55
55
56
56
/// Run Mode.
57
- #[ clap( long, env = "RUN_MODE" , default_value = "dev" ) ]
57
+ #[ clap( long, env = "RUN_MODE" , default_value = "dev" , global = true ) ]
58
58
run_mode : String ,
59
59
60
60
/// 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 ) ]
62
62
#[ example = "Parsed from the number of occurrences: `-v` for `Warning`, `-vv` for `Info`, `-vvv` for `Debug` and `-vvvv` for `Trace`" ]
63
63
verbose : u8 ,
64
64
65
65
/// Directory where configuration file is located.
66
- #[ clap( long, default_value = "./config" ) ]
66
+ #[ clap( long, default_value = "./config" , global = true ) ]
67
67
pub config_directory : PathBuf ,
68
68
69
69
/// Override configuration Aggregator endpoint URL.
70
- #[ clap( long, env = "AGGREGATOR_ENDPOINT" ) ]
70
+ #[ clap( long, env = "AGGREGATOR_ENDPOINT" , global = true ) ]
71
71
#[ example = "`https://aggregator.pre-release-preview.api.mithril.network/aggregator`" ]
72
72
aggregator_endpoint : Option < String > ,
73
73
@@ -76,20 +76,20 @@ pub struct Args {
76
76
json : bool ,
77
77
78
78
/// Enable JSON output for logs displayed according to verbosity level
79
- #[ clap( long) ]
79
+ #[ clap( long, global = true ) ]
80
80
log_format_json : bool ,
81
81
82
82
/// Redirect the logs to a file
83
- #[ clap( long, alias( "o" ) ) ]
83
+ #[ clap( long, alias( "o" ) , global = true ) ]
84
84
#[ example = "`./mithril-client.log`" ]
85
85
log_output : Option < String > ,
86
86
87
87
/// Enable unstable commands
88
- #[ clap( long) ]
88
+ #[ clap( long, global = true ) ]
89
89
unstable : bool ,
90
90
91
91
/// Request origin tag
92
- #[ clap( long) ]
92
+ #[ clap( long, global = true ) ]
93
93
origin_tag : Option < String > ,
94
94
}
95
95
0 commit comments