transifex / transifex-client

The Transifex command-line tool.
https://www.transifex.com/
GNU General Public License v2.0
136 stars 76 forks source link

tx config should check source folder content #265

Open ArtFlag opened 5 years ago

ArtFlag commented 5 years ago

Hello,

I would like to suggest to print an error message when the source dir provided to tx config is empty, since it's most likely a user mistake.

tx config mapping-bulk --project documentation --file-extension '.pot' \
   --source-file-dir source/locale/en/ --source-lang en --type PO \
   --expression 'source/locale/<lang>/LC_MESSAGES/{filepath}/{filename}.po'

Would return something like:The source file directory is has not pot files. Are you sure it's the right path?

Thanks!