Skip to content

Commit 3f7b1e5

Browse files
committed
added usage
1 parent 1ddc80b commit 3f7b1e5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vcodec.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// vcodec by Squeeze69
12
package main
23

34
import (
@@ -14,6 +15,10 @@ import (
1415
var exitValue = 0
1516

1617
func main() {
18+
if len(os.Args) < 3 {
19+
fmt.Print("Usage: vcodec riff_file codec1 codec2 ...\ncodec name case DO matter\n")
20+
os.Exit(2)
21+
}
1722
main2()
1823
fmt.Printf("Exitvalue: %d\n", exitValue)
1924
os.Exit(exitValue)

0 commit comments

Comments
 (0)