commit 24023c8a24d57bfcdd8af8d4f52d74d75a2b7eee
parent ff0e99d818abcad6ab9076222209d36e9d20146d
Author: oblique <psyberbits@gmail.com>
Date: Sat, 13 Apr 2013 11:03:54 +0300
minor change in help output
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/subsync.go b/subsync.go
@@ -228,7 +228,8 @@ func main() {
_, err := flags.Parse(&opts)
if err != nil {
if err.(*flags.Error).Type == flags.ErrHelp {
- fmt.Printf("Example:\n %s -f 00:01:33,492 -l 01:39:23,561 -i sub.srt\n",
+ fmt.Fprintf(os.Stderr, "Example:\n")
+ fmt.Fprintf(os.Stderr, " %s -f 00:01:33,492 -l 01:39:23,561 -i file.srt\n",
path.Base(os.Args[0]))
os.Exit(0)
}