Skip to content

clone: rename -p/--path flag to --working-dir#333

Open
colluca wants to merge 3 commits into
masterfrom
align-clone-snapshot-workdir-flag
Open

clone: rename -p/--path flag to --working-dir#333
colluca wants to merge 3 commits into
masterfrom
align-clone-snapshot-workdir-flag

Conversation

@colluca

@colluca colluca commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • bender clone used -p/--path and bender snapshot used --working-dir for the same working-directory concept (same default value working_dir, same semantics). --working-dir is now the primary, documented flag for clone too, matching snapshot.
  • -p/--path are kept as fully-working hidden aliases on clone for backwards compatibility — neither appears in --help, but both still parse.
  • Updated the docs/book references and added a CHANGELOG entry.

Not a breaking change: existing -p/--path usage keeps working.

Test plan

  • cargo check --no-default-features passes
  • bender clone --help shows only --working-dir <WORKING_DIR> (no -p/--path)
  • bender clone -p <dir> <pkg> and bender clone --path <dir> <pkg> still parse correctly
  • bender snapshot --help shows --working-dir <WORKING_DIR> (unchanged)

colluca added 3 commits July 16, 2026 17:16
Align bender clone's flag with bender snapshot's --working-dir, since
both refer to the same working-directory concept (and share the same
default value). --path was also easy to confuse with the unrelated
`bender path` subcommand and path-dependency overrides.
Restores backwards compatibility for scripts using bender clone
-p/--path after the previous rename to --working-dir.
-p was still showing in help alongside --working-dir; use short_alias
instead of short so it stays functional but hidden, consistent with
the hidden --path long alias.
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.

1 participant