Commit 08870d715d45f3d76c5e49cfd886b07f14032bf4

Authored by Christian Herdtweck
1 parent 34781615

simplified params & docu for VBA_Parser_CLI: just forward everything

Showing 1 changed file with 3 additions and 12 deletions
oletools/olevba.py
... ... @@ -2751,21 +2751,12 @@ class VBA_Parser_CLI(VBA_Parser):
2751 2751 of olevba. (see VBA_Parser)
2752 2752 """
2753 2753  
2754   - def __init__(self, filename, data=None, container=None):
  2754 + def __init__(self, *args, **kwargs):
2755 2755 """
2756 2756 Constructor for VBA_Parser_CLI.
2757   - Calls __init__ from VBA_Parser
2758   -
2759   - :param filename: filename or path of file to parse, or file-like object
2760   -
2761   - :param data: None or bytes str, if None the file will be read from disk (or from the file-like object).
2762   - If data is provided as a bytes string, it will be parsed as the content of the file in memory,
2763   - and not read from disk. Note: files must be read in binary mode, i.e. open(f, 'rb').
2764   -
2765   - :param container: str, path and filename of container if the file is within
2766   - a zip archive, None otherwise.
  2757 + Calls __init__ from VBA_Parser with all arguments --> see doc there
2767 2758 """
2768   - super(VBA_Parser_CLI, self).__init__(filename, data=data, container=container)
  2759 + super(VBA_Parser_CLI, self).__init__(*args, **kwargs)
2769 2760  
2770 2761  
2771 2762 def print_analysis(self, show_decoded_strings=False, deobfuscate=False):
... ...