command line parser add --exclude
This commit is contained in:
parent
a92c6e8327
commit
179b2ab3f9
@ -11,6 +11,8 @@ cmd_parser.add_argument("path")
|
|||||||
cmd_parser.add_argument("pattern")
|
cmd_parser.add_argument("pattern")
|
||||||
# if -s is found in the command line cmd_args.show_children_nodes is True
|
# 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")
|
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
|
# start the command line parsing
|
||||||
cmd_args = cmd_parser.parse_args()
|
cmd_args = cmd_parser.parse_args()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user