command line parser add --exclude

This commit is contained in:
Amber 2024-01-31 12:00:38 +01:00
parent a92c6e8327
commit 179b2ab3f9
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ cmd_parser.add_argument("path")
cmd_parser.add_argument("pattern")
# if -s is found in the command line cmd_args.show_children_nodes is True
cmd_parser.add_argument("-s", "--show-children-nodes", action="store_true")
## more than one occurrencies of -e option are appended in a list
cmd_parser.add_argument("-e", "--exclude", action="append")
# start the command line parsing
cmd_args = cmd_parser.parse_args()