diff options
Diffstat (limited to 'crates/shirabe/src/command/bump_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/bump_command.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/crates/shirabe/src/command/bump_command.rs b/crates/shirabe/src/command/bump_command.rs index 3b680a29..8f95366f 100644 --- a/crates/shirabe/src/command/bump_command.rs +++ b/crates/shirabe/src/command/bump_command.rs @@ -349,7 +349,7 @@ impl Command for BumpCommand { .into(), InputOption::new( "dev-only", - Some(PhpMixed::String("D".to_string())), + Some("D"), Some(InputOption::VALUE_NONE), "Only bump requirements in \"require-dev\".", None, @@ -358,7 +358,7 @@ impl Command for BumpCommand { .into(), InputOption::new( "no-dev-only", - Some(PhpMixed::String("R".to_string())), + Some("R"), Some(InputOption::VALUE_NONE), "Only bump requirements in \"require\".", None, @@ -397,12 +397,8 @@ impl Command for BumpCommand { let packages_filter: Vec<String> = input .borrow() .get_argument("packages")? - .as_list() - .map(|l| { - l.iter() - .filter_map(|v| v.as_string().map(|s| s.to_string())) - .collect() - }) + .as_array() + .map(<[String]>::to_vec) .unwrap_or_default(); let dev_only = input |
