mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 12:26:52 +00:00
Rename metavar to clarify required usage syntax
This commit is contained in:
parent
4b8eb6f96a
commit
2d4833c73e
2 changed files with 3 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ Add this to your `.pre-commit-config.yaml`
|
||||||
- `detect-aws-credentials` - Checks for the existence of AWS secrets that you
|
- `detect-aws-credentials` - Checks for the existence of AWS secrets that you
|
||||||
have set up with the AWS CLI.
|
have set up with the AWS CLI.
|
||||||
The following arguments are available:
|
The following arguments are available:
|
||||||
- `--credentials-file CREDENTIAL_FILES` - additional AWS CLI style
|
- `--credentials-file CREDENTIALS_FILE` - additional AWS CLI style
|
||||||
configuration file in a non-standard location to fetch configured
|
configuration file in a non-standard location to fetch configured
|
||||||
credentials from. Can be repeated multiple times.
|
credentials from. Can be repeated multiple times.
|
||||||
- `--allow-missing-credentials` - Allow hook to pass when no credentials are
|
- `--allow-missing-credentials` - Allow hook to pass when no credentials are
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ def main(argv=None):
|
||||||
parser.add_argument('filenames', nargs='+', help='Filenames to run')
|
parser.add_argument('filenames', nargs='+', help='Filenames to run')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--credentials-file',
|
'--credentials-file',
|
||||||
dest='credential_files',
|
dest='credentials_file',
|
||||||
action='append',
|
action='append',
|
||||||
default=[
|
default=[
|
||||||
'~/.aws/config', '~/.aws/credentials', '/etc/boto.cfg', '~/.boto',
|
'~/.aws/config', '~/.aws/credentials', '/etc/boto.cfg', '~/.boto',
|
||||||
|
|
@ -105,7 +105,7 @@ def main(argv=None):
|
||||||
)
|
)
|
||||||
args = parser.parse_args(argv)
|
args = parser.parse_args(argv)
|
||||||
|
|
||||||
credential_files = set(args.credential_files)
|
credential_files = set(args.credentials_file)
|
||||||
|
|
||||||
# Add the credentials files configured via environment variables to the set
|
# Add the credentials files configured via environment variables to the set
|
||||||
# of files to to gather AWS secrets from.
|
# of files to to gather AWS secrets from.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue