Skip to content

Commit

Permalink
Fix crash when -R option is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Vejnár committed Feb 17, 2020
1 parent 76991ab commit a8a0e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pe_tools/peresed.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main():
gp.add_argument('--add-dependency', '-M', action='append', metavar="DEP", default=[], help="add dependency. DEP should be a space separated list of key=value pairs, e.g. " +
"\"type=win32 name=Microsoft.Windows.Common-Controls version=6.0.0.0 processorArchitecture=* publicKeyToken=6595b64144ccf1df language=*\"")
gp.add_argument('--set-version', '-V', action='append', metavar="STR", help="updates the specified version-info field, e.g. FileVersion=\"1, 2, 3, 4\"")
gp.add_argument('--set-resource', '-R', metavar=('TYPE', 'NAME', 'LANG', 'FILE'), nargs=4, action='append', help='set a resource entry to the contents of a file, e.g. "-R RT_RCDATA prog.exe 0 prog.exe"')
gp.add_argument('--set-resource', '-R', metavar=('TYPE', 'NAME', 'LANG', 'FILE'), nargs=4, action='append', default=[], help='set a resource entry to the contents of a file, e.g. "-R RT_RCDATA prog.exe 0 prog.exe"')

ap.add_argument('--output', '-o', help="write the edited contents to OUTPUT instead of editing the input file in-place")
ap.add_argument('file', help="the PE file to parse and edit")
Expand Down

0 comments on commit a8a0e7f

Please sign in to comment.