You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
containertool: Rename --username/password to --default-username/password (#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.
Copy file name to clipboardExpand all lines: Sources/swift-container-plugin/Documentation.docc/build-container-image.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,13 +33,13 @@ Wrap a binary in a container image and publish it.
33
33
34
34
If the `product` being packaged has a [resource bundle](https://developer.apple.com/documentation/xcode/bundling-resources-with-a-swift-package) it will be added to the image automatically.
35
35
36
-
- term `--username <username>`:
36
+
- term `--default-username <username>`:
37
37
Default username to use when logging into the registry.
38
38
39
39
This username is used if there is no matching `.netrc` entry for the registry, there is no `.netrc` file, or the `--disable-netrc` option is set.
40
40
The same username is used for the source and destination registries.
41
41
42
-
- term `--password <password>`:
42
+
- term `--default-password <password>`:
43
43
Default password to use when logging into the registry.
44
44
45
45
This password is used if there is no matching `.netrc` entry for the registry, there is no `.netrc` file, or the `--disable-netrc` option is set.
0 commit comments