Skip to content

Commit

Permalink
Improve register usage guidance
Browse files Browse the repository at this point in the history
Ref. #311
  • Loading branch information
brainwane committed Mar 15, 2018
1 parent 0cf4630 commit 7664372
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions twine/commands/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,42 +74,42 @@ def main(args):
"Should be a section in the config file. (Can also be set "
"via %(env)s environment variable.) "
"Initial package registration no longer necessary on pypi.org: "
"https://packaging.python.org/guides/migrating-to-pypi-org/#registering-package-names-metadata",
"https://packaging.python.org/guides/migrating-to-pypi-org/",
)
parser.add_argument(
"--repository-url",
action=utils.EnvironmentDefault,
env="TWINE_REPOSITORY_URL",
default=None,
required=False,
help="The repository URL to register the package to. "
"This overrides --repository."
help="The repository (package index) URL to register the package to. "
"This overrides --repository. "
"(Can also be set via %(env)s environment variable.)"
)
parser.add_argument(
"-u", "--username",
action=utils.EnvironmentDefault,
env="TWINE_USERNAME",
required=False, help="The username to authenticate to the repository "
"as (can also be set via %(env)s environment "
"variable)",
"(package index) as. (Can also be set via "
"%(env)s environment variable.)",
)
parser.add_argument(
"-p", "--password",
action=utils.EnvironmentDefault,
env="TWINE_PASSWORD",
required=False, help="The password to authenticate to the repository "
"with (can also be set via %(env)s environment "
"variable)",
"(package index) with. (Can also be set via "
"%(env)s environment variable.)",
)
parser.add_argument(
"-c", "--comment",
help="The comment to include with the distribution file",
help="The comment to include with the distribution file.",
)
parser.add_argument(
"--config-file",
default="~/.pypirc",
help="The .pypirc config file to use",
help="The .pypirc config file to use.",
)
parser.add_argument(
"--cert",
Expand All @@ -119,18 +119,18 @@ def main(args):
required=False,
metavar="path",
help="Path to alternate CA bundle (can also be set via %(env)s "
"environment variable)",
"environment variable).",
)
parser.add_argument(
"--client-cert",
metavar="path",
help="Path to SSL client certificate, a single file containing the "
"private key and the certificate in PEM format",
"private key and the certificate in PEM format.",
)
parser.add_argument(
"package",
metavar="package",
help="File from which we read the package metadata",
help="File from which we read the package metadata.",
)

args = parser.parse_args(args)
Expand Down

0 comments on commit 7664372

Please sign in to comment.