You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
469 B
Python
19 lines
469 B
Python
|
|
# Copyright (C) 2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
class Converter:
|
|
def __init__(self, cmdline_args=None):
|
|
pass
|
|
|
|
def __call__(self, extractor, save_dir):
|
|
raise NotImplementedError()
|
|
|
|
def _parse_cmdline(self, cmdline):
|
|
parser = self.build_cmdline_parser()
|
|
|
|
if len(cmdline) != 0 and cmdline[0] == '--':
|
|
cmdline = cmdline[1:]
|
|
args = parser.parse_args(cmdline)
|
|
return vars(args) |