Skip to content

Commit 5508709

Browse files
committed
smartling-cli. version 1.7. Fixed issue #73: release requires non-empty values in config file even for credentials in command parameters
1 parent bee312e commit 5508709

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
.tags
77
.tags1
88
/_test/
9+
.DS_Store

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ type FileConfig struct {
2222
}
2323

2424
type Config struct {
25-
UserID string `yaml:"user_id" required:"true"`
26-
Secret string `yaml:"secret" required:"true"`
25+
UserID string `yaml:"user_id"`
26+
Secret string `yaml:"secret"`
2727
AccountID string `yaml:"account_id"`
2828
ProjectID string `yaml:"project_id,omitempty"`
2929
Threads int `yaml:"threads"`

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/reconquest/hierr-go"
1717
)
1818

19-
var version = "1.5"
19+
var version = "1.7"
2020

2121
var usage = `smartling-cli - manage translation files using Smartling.
2222
@@ -183,7 +183,7 @@ func main() {
183183
return key
184184
})
185185

186-
args, err := docopt.Parse(usage, nil, false, "smartling "+version, false)
186+
args, err := docopt.ParseArgs(usage, nil, "smartling "+version)
187187
if err != nil {
188188
panic(err)
189189
}

0 commit comments

Comments
 (0)