Skip to content

Commit f922c5d

Browse files
author
Steve Peak
authored
Merge pull request codecov#79 from peterjc/patch-2
Document --token @filename in help text
2 parents acd591d + 2ebf9a3 commit f922c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def main(*argv, **kwargs):
200200
epilog="""Upload reports to Codecov""")
201201
basics = parser.add_argument_group('======================== Basics ========================')
202202
basics.add_argument('--version', action='version', version='Codecov py-v'+version+" - https://codecov.io/")
203-
basics.add_argument('--token', '-t', default=os.getenv("CODECOV_TOKEN"), help="Private repository token. Not required for public repositories on Travis-CI, CircleCI and AppVeyor")
203+
basics.add_argument('--token', '-t', default=os.getenv("CODECOV_TOKEN"), help="Private repository token or @filename for file containing the token. Defaults to $CODECOV_TOKEN. Not required for public repositories on Travis-CI, CircleCI and AppVeyor")
204204
basics.add_argument('--file', '-f', nargs="*", default=None, help="Target a specific file for uploading")
205205
basics.add_argument('--flags', '-F', nargs="*", default=None, help="Flag these uploaded files with custom labels")
206206
basics.add_argument('--env', '-e', nargs="*", default=None, help="Store environment variables to help distinguish CI builds.")

0 commit comments

Comments
 (0)