From 9fdb495b20a0d15707a25cc65a7233b5e791c767 Mon Sep 17 00:00:00 2001 From: Sagi Shadur Date: Wed, 13 May 2020 19:02:04 +0300 Subject: [PATCH] Add remove flag --- src/eddington_static/__main__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/eddington_static/__main__.py b/src/eddington_static/__main__.py index f369eff4..3362fd7b 100644 --- a/src/eddington_static/__main__.py +++ b/src/eddington_static/__main__.py @@ -30,6 +30,9 @@ parser.add_argument( "-c", "--commands", nargs="+", type=str, help="Specify the commands to run" ) +parser.add_argument( + "-r", "--remove", nargs="+", type=str, help="Remove commands from running" +) parser.add_argument( "--commands-list", action="store_true", @@ -74,6 +77,8 @@ def main() -> None: commands = COMMANDS if args.commands: commands = [command for command in commands if command.name in args.commands] + if args.remove: + commands = [command for command in commands if command.name not in args.remove] failed_commands = [] for command in commands: if not silent: