diff --git a/libsast/__init__.py b/libsast/__init__.py index 440bd3f..7ba1b5b 100644 --- a/libsast/__init__.py +++ b/libsast/__init__.py @@ -12,7 +12,7 @@ __title__ = 'libsast' __authors__ = 'Ajin Abraham' __copyright__ = f'Copyright {year} Ajin Abraham, opensecurity.in' -__version__ = '3.1.5' +__version__ = '3.1.6' __version_info__ = tuple(int(i) for i in __version__.split('.')) __all__ = [ 'Scanner', diff --git a/libsast/__main__.py b/libsast/__main__.py index 4c1323a..54dc9b2 100644 --- a/libsast/__main__.py +++ b/libsast/__main__.py @@ -78,6 +78,12 @@ def main(): help='No of CPU cores to use. Use all cores by default', type=int, required=False) + parser.add_argument('-mp', '--multiprocessing', + help=('Multiprocessing strategy to use.' + ' Options: default, thread, billiard'), + default='default', + type=str, + required=False) parser.add_argument('-v', '--version', help='Show libsast version', required=False, @@ -94,6 +100,7 @@ def main(): 'ignore_paths': args.ignore_paths, 'show_progress': args.show_progress, 'cpu_core': args.cpu_core, + 'multiprocessing': args.multiprocessing, } result = Scanner(options, args.path).scan() output(args.output, result) diff --git a/pyproject.toml b/pyproject.toml index 7636638..638f2e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "libsast" -version = "3.1.5" +version = "3.1.6" description = "A generic SAST library built on top of semgrep and regex" keywords = ["libsast", "SAST", "Python SAST", "SAST API", "Regex SAST", "Pattern Matcher"] authors = ["Ajin Abraham "]