Skip to content

Commit

Permalink
Merge pull request lokalise#12 from lokalise/hotfix/project-id
Browse files Browse the repository at this point in the history
Fixes --project-id
  • Loading branch information
yarlson authored Jan 17, 2020
2 parents ccdec90 + f5dfd94 commit 6608443
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ If you are using project branching feature in Lokalise, simply add branch name s
Optionally, you may rename included `config-example.yml` to `config.yml` and set various CLI tool parameters like token or timeouts. You can specify a config file location using `--config` parameter.

## Changes
**2.2.1 (January 17, 2020)**

Fixes:
* `--project-id` hasn't been processed correctly

**2.2.0 (January 16, 2020)**

Added possibility to specify a configuration file with a --config flag
Expand Down
4 changes: 3 additions & 1 deletion cmd/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ func parseConfig() {
}

Token = viper.GetString("token")
projectId = viper.GetString("project-id")
if viper.GetString("project-id") != "" {
projectId = viper.GetString("project-id")
}
}
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
Version = "2.1.0"
Version = "2.2.1"
DefaultPageLimit = 5000
)

Expand Down

0 comments on commit 6608443

Please sign in to comment.