From 179b2ab3f9e3ac88f2fad12fc1668b0bded0b75f Mon Sep 17 00:00:00 2001 From: Amber Date: Wed, 31 Jan 2024 12:00:38 +0100 Subject: [PATCH] command line parser add --exclude --- src/cmdline_parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmdline_parser.py b/src/cmdline_parser.py index c2384eb..4d6578e 100644 --- a/src/cmdline_parser.py +++ b/src/cmdline_parser.py @@ -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()