@@ -10,6 +10,11 @@ pub struct Cli {
1010 #[ arg( long) ]
1111 pub dry_run : bool ,
1212
13+ /// Debug only option to print the parsed options
14+ #[ cfg( debug_assertions) ]
15+ #[ arg( long) ]
16+ pub print_cmd : bool ,
17+
1318 /// Increase verbosity
1419 #[ arg( short, long, value_name = "Error|Warn|Info|Debug|Trace" , default_value_t = log:: Level :: Warn , env = crate :: ENV_LOG_LEVEL ) ]
1520 pub log_level : log:: Level ,
@@ -74,8 +79,6 @@ const START_HEADING_EXPERIMENTAL: &str = "EXPERIMENTAL";
7479#[ derive( Args , Debug , Clone ) ]
7580pub struct CmdStartArgs {
7681 /// Enter shell after container initialization finishes
77- ///
78- /// Ignored if stdout is not a terminal (ex. a pipe)
7982 #[ arg( short = 'E' , long, env = crate :: ENV_ENTER_ON_START ) ]
8083 pub enter : bool ,
8184
@@ -144,7 +147,7 @@ pub struct CmdStartArgs {
144147 /// Add capabilities, or drop them with by prefixing `!cap`
145148 ///
146149 /// For more details about capabilities read `man 7 capabilities`
147- #[ arg( long = "cap" , value_name = "[!]CAPABILITY" , help_heading = START_HEADING_PERMISSIONS ) ]
150+ #[ arg( long = "cap" , value_name = "[!]CAPABILITY" , value_delimiter = ',' , help_heading = START_HEADING_PERMISSIONS ) ]
148151 pub capabilities : Vec < String > ,
149152
150153 /// File, image or config to use to start a container
0 commit comments