gopy: harmonize default py-version for gopy cmds

Fixes #66.

Change-Id: I6f9f535c5a78c2e26d3c7f386999505c0339815c
This commit is contained in:
Sebastien Binet 2015-09-11 08:26:37 +02:00
parent 1ed32c9a61
commit c4d5a9cd7c
3 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,7 @@ ex:
Flag: *flag.NewFlagSet("gopy-bind", flag.ExitOnError),
}
cmd.Flag.String("lang", "py2", "python version to use for bindings (python2|py2|python3|py3)")
cmd.Flag.String("lang", defaultPyVersion, "python version to use for bindings (python2|py2|python3|py3)")
cmd.Flag.String("output", "", "output directory for bindings")
return cmd
}

View File

@ -29,7 +29,7 @@ ex:
Flag: *flag.NewFlagSet("gopy-gen", flag.ExitOnError),
}
cmd.Flag.String("lang", "python", "target language for bindings")
cmd.Flag.String("lang", defaultPyVersion, "target language for bindings")
cmd.Flag.String("output", "", "output directory for bindings")
return cmd
}

View File

@ -12,6 +12,10 @@ import (
"github.com/gonuts/flag"
)
const (
defaultPyVersion = "py2"
)
var (
app *commander.Command
)