diff options
Diffstat (limited to 'crates/shirabe/src/command/archive_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/archive_command.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/crates/shirabe/src/command/archive_command.rs b/crates/shirabe/src/command/archive_command.rs index c823860..01da89d 100644 --- a/crates/shirabe/src/command/archive_command.rs +++ b/crates/shirabe/src/command/archive_command.rs @@ -90,7 +90,7 @@ impl ArchiveCommand { let format = input .get_option("format") - .as_string_opt() + .as_string() .map(|s| s.to_string()) .unwrap_or_else(|| { config @@ -103,7 +103,7 @@ impl ArchiveCommand { let dir = input .get_option("dir") - .as_string_opt() + .as_string() .map(|s| s.to_string()) .unwrap_or_else(|| { config @@ -121,18 +121,15 @@ impl ArchiveCommand { &config, input .get_argument("package") - .as_string_opt() + .as_string() .map(|s| s.to_string()), input .get_argument("version") - .as_string_opt() + .as_string() .map(|s| s.to_string()), &format, &dir, - input - .get_option("file") - .as_string_opt() - .map(|s| s.to_string()), + input.get_option("file").as_string().map(|s| s.to_string()), input .get_option("ignore-filters") .as_bool() |
