Skip to content

Conversation

@euanh
Copy link
Collaborator

@euanh euanh commented May 1, 2025

Motivation

The help text for --username and --password states that these options override .netrc. In fact they are used as defaults if no suitable entry is found in .netrc.

This pull request cherry picks the help text changes from #119, without introducing the new environment variables.

Modifications

Correct the option descriptions in the manual page.

Result

Documentation accurately describes what the options do.

Test Plan

All existing tests continue to pass. No functional change.

Motivation
----------

The help text for `--username` and `--password` states that these
options override `.netrc`.  In fact they are used as defaults if
no suitable entry is found in `.netrc`.

Modifications
-------------

Correct the option descriptions in the manual page.

Result
------

Documentation accurately describes what the options do.

Test Plan
---------

All existing tests continue to pass.   No functional change.
@euanh euanh added area/documentation Improvements or additions to documentation semver/patch No public API change. kind/cherry-pick Back-port changes from one release or branch to another labels May 1, 2025
@euanh euanh merged commit ca3c638 into apple:release/1.0 May 1, 2025
23 checks passed
euanh added a commit that referenced this pull request May 1, 2025
…ord (#125)

Motivation
----------

The `--username` and `--password` options define default values which
are used if no suitable credentials can be found in `.netrc`. Their
current names could imply that they override other sources of
credentials - the help originally said this was the case (#123).
Renaming them to `--default-username` and `--default-password` reduces
the risk of misunderstanding.

Modifications
-------------

* Rename the `--user` and `--password` options to `--default-user` and
`--default-password`.
* Add checks to warn that the old versions are deprecated, and fail if
both are provided together.
* Hide the old options from `--help` and remove them from the manual
page
* Rename the environment variable versions of these options. The
environment variable change had not yet been released so deprecation
warnings are not needed.

Result
------

* New users will see more descriptive option names
* Existing users will be prompted to change the options they pass

Test Plan
---------

All existing test continue to pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Improvements or additions to documentation kind/cherry-pick Back-port changes from one release or branch to another semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant