diff options
Diffstat (limited to 'crates/shirabe-symfony-console/src/input/array_input.rs')
| -rw-r--r-- | crates/shirabe-symfony-console/src/input/array_input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe-symfony-console/src/input/array_input.rs b/crates/shirabe-symfony-console/src/input/array_input.rs index d93501c7..e19381a9 100644 --- a/crates/shirabe-symfony-console/src/input/array_input.rs +++ b/crates/shirabe-symfony-console/src/input/array_input.rs @@ -139,9 +139,9 @@ impl ArrayInput { if key == "--" { return Ok(()); } - if shirabe_php_shim::str_starts_with(&key, "--") { + if key.starts_with("--") { self.add_long_option(&shirabe_php_shim::substr(&key, 2, None), value)?; - } else if shirabe_php_shim::str_starts_with(&key, "-") { + } else if key.starts_with("-") { self.add_short_option(&shirabe_php_shim::substr(&key, 1, None), value)?; } else { self.add_argument(&PhpMixed::String(key), value)?; |
