Skip to content

Commit 7e72d29

Browse files
author
Konstantinos Bairaktaris
committed
Abort source pulls (wihtout '-t') with languages
This check existed in `tx push` but for some reason we neglected to copy it to `tx pull`.
1 parent 49c50d5 commit 7e72d29

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

cmd/tx/main.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,15 @@ func Main() {
461461
), 1)
462462
}
463463

464+
if !arguments.Translations &&
465+
(arguments.All || len(arguments.Languages) > 0) {
466+
return cli.Exit(errorColor(
467+
"It doesn't make sense to use the '--all' or "+
468+
"'--language' flag without the "+
469+
"'--translation' flag",
470+
), 1)
471+
}
472+
464473
err = txlib.PullCommand(&cfg, &api, &arguments)
465474
if err != nil {
466475
return cli.Exit(err, 1)

0 commit comments

Comments
 (0)