Commit cd156ee55fc3a5dcb11f10fbc6ad95185bf44cb9
1 parent
383ae415
olevba: fixed slight bug in main (no options.input anymore)
Showing
1 changed file
with
2 additions
and
1 deletions
oletools/olevba.py
| @@ -156,6 +156,7 @@ https://github.com/unixfreak0037/officeparser | @@ -156,6 +156,7 @@ https://github.com/unixfreak0037/officeparser | ||
| 156 | # 2015-10-09 v0.42 PL: - VBA_Parser: split each format into a separate method | 156 | # 2015-10-09 v0.42 PL: - VBA_Parser: split each format into a separate method |
| 157 | # 2015-10-10 PL: - added support for text files with VBA source code | 157 | # 2015-10-10 PL: - added support for text files with VBA source code |
| 158 | # 2015-11-17 PL: - fixed bug with --decode option | 158 | # 2015-11-17 PL: - fixed bug with --decode option |
| 159 | +# 2015-12-16 PL: - fixed bug in main (no options input anymore) | ||
| 159 | 160 | ||
| 160 | __version__ = '0.42' | 161 | __version__ = '0.42' |
| 161 | 162 | ||
| @@ -2418,7 +2419,7 @@ def main(): | @@ -2418,7 +2419,7 @@ def main(): | ||
| 2418 | (options, args) = parser.parse_args() | 2419 | (options, args) = parser.parse_args() |
| 2419 | 2420 | ||
| 2420 | # Print help if no arguments are passed | 2421 | # Print help if no arguments are passed |
| 2421 | - if len(args) == 0 and not options.input: | 2422 | + if len(args) == 0: |
| 2422 | print __doc__ | 2423 | print __doc__ |
| 2423 | parser.print_help() | 2424 | parser.print_help() |
| 2424 | sys.exit() | 2425 | sys.exit() |