Skip to content

Commit 339079e

Browse files
committed
update usage instructions to include optional filename parameter for IFF file inspection
1 parent 2c5f017 commit 339079e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cmd/iffmaster/main.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
/*
55
Iffmaster is a tool to inspect IFF files as defined under EA-85.
66
7-
Usage: [options]
7+
Usage: [options] filename
88
99
iffmaster
1010
1111
-version: Show the application's version.
12+
13+
filename: The IFF file to inspect (optional).
1214
*/
1315
package main
1416

@@ -24,6 +26,13 @@ func main() {
2426
var filename string
2527

2628
showVersion := flag.Bool("version", false, "Display the version of iffmaster")
29+
flag.Usage = func() {
30+
fmt.Fprintf(flag.CommandLine.Output(),
31+
"Usage: %s [options] filename\n", os.Args[0])
32+
flag.PrintDefaults()
33+
fmt.Fprintf(flag.CommandLine.Output(),
34+
"\n filename: The IFF file to inspect (optional).\n")
35+
}
2736
flag.Parse()
2837

2938
if *showVersion {

0 commit comments

Comments
 (0)