ssut/payload-dumper-go

Usage needs to indicate options should come before input file parameter

XEonAX opened this issue · 1 comments

fmt.Fprintf(os.Stderr, "Usage: %s [inputfile]\n", os.Args[0])

Something like:

fmt.Fprintf(os.Stderr, "Usage: %s [options] [inputfile]\n", os.Args[0])

So that it can print

C:\Projects\roms\alioth21.8.18>C:\Projects\roms\posp\payload-dumper-go.exe
Usage: C:\Projects\roms\posp\payload-dumper-go.exe [options] [inputfile]
...