Skip to content

Commit d3262e6

Browse files
committed
Update documentation related to --name flag
1 parent 6d5871a commit d3262e6

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

lib/mix/tasks/hex.registry.ex

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ defmodule Mix.Tasks.Hex.Registry do
6161
6262
## Add a package
6363
64-
$ mix hex.registry add PUBLIC_DIR PACKAGE1 PACKAGE2 ...
64+
$ mix hex.registry add PUBLIC_DIR PACKAGE
6565
66-
To add one or more packages to an existing registry, supply the public directory of the registry
67-
and paths to the new packages. This action also requires the private key used to generate the
68-
original registry:
66+
To add a package to an existing registry, supply the public directory of the registry and path to
67+
the new packages. This action also requires the name of the registry and the private key
68+
originally used to generate it:
6969
70-
$ mix hex.registry add public --private-key=private_key.pem foo-1.0.0.tar
70+
$ mix hex.registry add public --name=acme --private-key=private_key.pem foo-1.0.0.tar
7171
* reading public/name
7272
* reading public/versions
7373
* moving foo-1.0.0.tar -> public/tarballs/foo-1.0.0.tar
@@ -76,8 +76,6 @@ defmodule Mix.Tasks.Hex.Registry do
7676
* updating public/names
7777
* updating public/versions
7878
79-
Supplying a `--name` is optional. If given, an error will be raised if the existing registry's
80-
name is different than the supplied value.
8179
"""
8280
@impl true
8381
def run(args) do

0 commit comments

Comments
 (0)