From a41145f0179c3f18234d613e41f6c5de9dcf006f Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 16 May 2018 03:23:20 +0200 Subject: T643: correct support for regex validators. --- src/helpers/validate-value.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/helpers/validate-value.py') diff --git a/src/helpers/validate-value.py b/src/helpers/validate-value.py index 2625663a2..e49bfb6f4 100755 --- a/src/helpers/validate-value.py +++ b/src/helpers/validate-value.py @@ -8,6 +8,7 @@ import argparse parser = argparse.ArgumentParser() parser.add_argument('--regex', action='append') parser.add_argument('--exec', action='append') +parser.add_argument('--value', action='store') args = parser.parse_args() @@ -27,6 +28,7 @@ except Exception as exn: try: for cmd in args.exec: + cmd = "{0} {1}".format(cmd, args.value) if debug: print(cmd) res = os.system(cmd) -- cgit v1.2.3