Skip to content

Commit b023da4

Browse files
committed
version 0.0.1
1 parent da733ef commit b023da4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

horenso.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
"github.com/kballard/go-shellquote"
1616
)
1717

18+
const version = "0.0.1"
19+
1820
type opts struct {
1921
Reporter []string `short:"r" long:"reporter" required:"true" value-name:"/path/to/reporter.pl" description:"handler for reporting the result of the job"`
2022
Noticer []string `short:"n" long:"noticer" value-name:"/path/to/noticer.rb" description:"handler for noticing the start of the job"`
@@ -130,7 +132,7 @@ func now() *time.Time {
130132
func parseArgs(args []string) (*flags.Parser, *opts, []string, error) {
131133
o := &opts{}
132134
p := flags.NewParser(o, flags.Default)
133-
p.Usage = "--reporter /path/to/reporter.pl -- /path/to/job [...]"
135+
p.Usage = "--reporter /path/to/reporter.pl -- /path/to/job [...]\n\nVerion: " + version
134136
rest, err := p.ParseArgs(args)
135137
return p, o, rest, err
136138
}

0 commit comments

Comments
 (0)