Skip to content

Commit

Permalink
Added example for skip list on command line (#2964)Co-authored-by: Aj…
Browse files Browse the repository at this point in the history
…inkya Udgirkar <audgirka@redhat.com> Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com> Co-authored-by: Sorin Sbarnea <sorin.sbarnea@gmail.com> Fixes #2946

* Added example for skip list on command line

* Update cli.py

---------

Co-authored-by: Ajinkya Udgirkar <audgirka@redhat.com>
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
Co-authored-by: Sorin Sbarnea <sorin.sbarnea@gmail.com>
  • Loading branch information
4 people authored Feb 1, 2023
1 parent f486b66 commit f777905
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ansiblelint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ def get_cli_parser() -> argparse.ArgumentParser:
dest="skip_list",
default=[],
action="append",
help="only check rules whose id/tags do not match these values",
help="only check rules whose id/tags do not match these values. \
e.g: --skip-list=name,run-once",
)
parser.add_argument(
"-w",
Expand Down

0 comments on commit f777905

Please sign in to comment.