Skip to content

Commit

Permalink
Merge 264844d into 6fe6faa
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatanabe authored Jul 18, 2018
2 parents 6fe6faa + 264844d commit 179b290
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you do not specify a FILE_PATH, it will listen on standard input.
--host, -H value (Required) backlog host name. Ex: xxx.backlog.jp [$BACKLOG_HOST]
--project, -p value (Required) backlog project key. [$BACKLOG_PROJECT_KEY]
--key, -k value (Required) backlog api key. [$BACKLOG_API_KEY]
--lang, -l value language setting. (ja or en) (default: "ja") [$BACKLOG_LANG]
--lang, -l value language setting. (ja or en) (default: "en") [$BACKLOG_LANG]
--progress, -P show progress bar
--help, -h show help
--version, -v print the version
Expand Down
2 changes: 1 addition & 1 deletion bbir/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
cli.StringFlag{
EnvVar: "BACKLOG_LANG",
Name: "lang, l",
Value: "ja",
Value: "en",
Usage: "language setting. (ja or en)",
},
cli.BoolFlag{
Expand Down
6 changes: 3 additions & 3 deletions bbir/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ func NewConfig(c *cli.Context) *Config {
APIKey: c.String("key"),
File: c.Args().First(),
Lang: func() Lang {
if c.String("lang") == En.Value() {
return En
if c.String("lang") == Ja.Value() {
return Ja
}
return Ja
return En
}(),
Progress: c.Bool("progress"),
}
Expand Down

0 comments on commit 179b290

Please sign in to comment.