ssut / payload-dumper-go

an android OTA payload dumper written in Go
Apache License 2.0
2.36k stars 201 forks source link

Usage needs to indicate options should come before input file parameter #22

Closed XEonAX closed 2 years ago

XEonAX commented 3 years ago

https://github.com/ssut/payload-dumper-go/blob/412e5a9dd12f89112391a71b920fa8feb3f63f60/main.go#L126

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]
...
XEonAX commented 3 years ago

from https://github.com/ssut/payload-dumper-go/issues/20#issuecomment-917383170