Skip to content

fix: accept an empty backup as-path - #1840

Draft
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:fix/issue-1135
Draft

fix: accept an empty backup as-path#1840
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:fix/issue-1135

Conversation

@magrathean-uk

Copy link
Copy Markdown

Summary

Allows an explicitly empty --as-path value and adds unit and integration regression coverage.

Why

Clap's default path parser rejected an empty argument before rustic could apply its existing snapshot-path semantics. The parser now preserves the empty path value for the command to handle.

Validation

  • cargo test --locked --lib commands::backup::tests::as_path_accepts_an_empty_cli_value
  • cargo test --locked --test backup_restore backup_accepts_an_empty_as_path
  • git diff --check

Fixes #1135.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--as-path <PATH> option skips empty string

1 participant