@@ -144,6 +144,7 @@ fn run_command_options(
144
144
. help ( "only works with --remote, don't wait for finishing remote job" )
145
145
. long ( "async" )
146
146
. conflicts_with ( "follow_dependency" )
147
+ . action ( clap:: ArgAction :: SetTrue )
147
148
. required ( false ) )
148
149
. arg ( Arg :: new ( "follow_dependency" )
149
150
. help ( "if set, not only run the specified job but run dependent jobs first" )
@@ -261,8 +262,11 @@ lazy_static! {
261
262
)
262
263
)
263
264
. subcommand(
264
- Command :: new( "halt" )
265
- . about( "halt and cleanup deplo workflow" )
265
+ workflow_command_options(
266
+ "halt" ,
267
+ "halt deplo workflow" ,
268
+ None
269
+ )
266
270
)
267
271
. subcommand(
268
272
run_command_options(
@@ -506,10 +510,22 @@ impl<'a> args::Args for Clap<'a> {
506
510
fn get_flag ( & self , name : & str ) -> bool {
507
511
return self . matches . get_flag ( name) ;
508
512
}
513
+ fn value_of ( & self , name : & str ) -> Option < & str > {
514
+ match self . matches . try_get_one :: < String > ( name) {
515
+ Ok ( v) => match v {
516
+ Some ( v) => Some ( v. as_str ( ) ) ,
517
+ None => None
518
+ }
519
+ Err ( _) => None
520
+ }
521
+ }
509
522
fn values_of ( & self , name : & str ) -> Option < Vec < & str > > {
510
- match self . matches . get_many :: < String > ( name) {
511
- Some ( it) => Some ( it. map ( |s| s. as_str ( ) ) . collect ( ) ) ,
512
- None => None
523
+ match self . matches . try_get_many :: < String > ( name) {
524
+ Ok ( vs) => match vs {
525
+ Some ( vs) => Some ( vs. map ( |v| v. as_str ( ) ) . collect ( ) ) ,
526
+ None => None
527
+ }
528
+ Err ( _) => None
513
529
}
514
530
}
515
531
fn command_path ( & self ) -> & Vec < & str > {
0 commit comments