File tree Expand file tree Collapse file tree 5 files changed +17
-18
lines changed
Expand file tree Collapse file tree 5 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010### Changed
1111- extern-img-source short version is '-k' for all binaries
12+ - remove duplicate '-c' option for client/proxy/server
13+ - rename '--config_path' to '--args-config' for arguments config file
1214### Fixed
1315- Remove default listen port for sanzu_proxy (resulting in vsock err)
1416### Removed
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ fn main() -> Result<()> {
3434 }
3535
3636 let matches = ClientArgs :: command ( ) . get_matches ( ) ;
37- let config_path = matches. get_one :: < std:: path:: PathBuf > ( "config_path " ) ;
37+ let args_config = matches. get_one :: < std:: path:: PathBuf > ( "args_config " ) ;
3838
39- let mut layers = if let Some ( config_path ) = config_path {
40- vec ! [ Layer :: Toml ( config_path . into( ) ) ]
39+ let mut layers = if let Some ( args_config ) = args_config {
40+ vec ! [ Layer :: Toml ( args_config . into( ) ) ]
4141 } else {
4242 vec ! [ ]
4343 } ;
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ fn main() -> Result<()> {
2121 }
2222
2323 let matches = ProxyArgs :: command ( ) . get_matches ( ) ;
24- let config_path = matches. get_one :: < std:: path:: PathBuf > ( "config_path " ) ;
24+ let args_config = matches. get_one :: < std:: path:: PathBuf > ( "args_config " ) ;
2525
26- let mut layers = if let Some ( config_path ) = config_path {
27- vec ! [ Layer :: Toml ( config_path . into( ) ) ]
26+ let mut layers = if let Some ( args_config ) = args_config {
27+ vec ! [ Layer :: Toml ( args_config . into( ) ) ]
2828 } else {
2929 vec ! [ ]
3030 } ;
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ fn main() -> Result<()> {
2121 }
2222
2323 let matches = ServerArgs :: command ( ) . get_matches ( ) ;
24- let config_path = matches. get_one :: < std:: path:: PathBuf > ( "config_path " ) ;
24+ let args_config = matches. get_one :: < std:: path:: PathBuf > ( "args_config " ) ;
2525
26- let mut layers = if let Some ( config_path ) = config_path {
27- vec ! [ Layer :: Toml ( config_path . into( ) ) ]
26+ let mut layers = if let Some ( args_config ) = args_config {
27+ vec ! [ Layer :: Toml ( args_config . into( ) ) ]
2828 } else {
2929 vec ! [ ]
3030 } ;
Original file line number Diff line number Diff line change @@ -27,15 +27,14 @@ pub enum ClipboardConfig {
2727pub struct ServerArgs {
2828 /// Config file
2929 #[ clap(
30- short,
31- long = "config_path" ,
30+ long = "args-config" ,
3231 help = r"Path of toml file storing *arguments* configuration.
3332Sanzu arguments can be set regarding this priority:
3433- this configuration file
3534- environment variable
3635- command line"
3736 ) ]
38- pub config_path : Option < std:: path:: PathBuf > ,
37+ pub args_config : Option < std:: path:: PathBuf > ,
3938
4039 /// Rest of arguments
4140 #[ clap( flatten) ]
@@ -178,15 +177,14 @@ tcp or vsock"
178177pub struct ClientArgs {
179178 /// Config file
180179 #[ clap(
181- short,
182- long = "config_path" ,
180+ long = "args-config" ,
183181 help = r"Path of toml file storing *arguments* configuration.
184182Sanzu arguments can be set regarding this priority:
185183- this configuration file
186184- environment variable
187185- command line"
188186 ) ]
189- pub config_path : Option < std:: path:: PathBuf > ,
187+ pub args_config : Option < std:: path:: PathBuf > ,
190188
191189 /// Rest of arguments
192190 #[ clap( flatten) ]
@@ -323,15 +321,14 @@ without being interpreted by the local window manager"
323321pub struct ProxyArgs {
324322 /// Config file
325323 #[ clap(
326- short,
327- long = "config_path" ,
324+ long = "args-config" ,
328325 help = r"Path of toml file storing *arguments* configuration.
329326Sanzu arguments can be set regarding this priority:
330327- this configuration file
331328- environment variable
332329- command line"
333330 ) ]
334- pub config_path : Option < std:: path:: PathBuf > ,
331+ pub args_config : Option < std:: path:: PathBuf > ,
335332
336333 /// Rest of arguments
337334 #[ clap( flatten) ]
You can’t perform that action at this time.
0 commit comments