deepl-translate icon indicating copy to clipboard operation
deepl-translate copied to clipboard

Simplify command line usage through default parameter

Open ptrstn opened this issue 3 years ago • 0 comments

Currently, if one wants to translate text via the command line, either the parameter -t for text or -f for file must be provided.

The general case is probably that a text rather than a file is to be translated. Therefore the parameter -t is a suitable default parameter.

This could ease up the usage to look like this:

deepl spanish russian "¡Buenos días!"

Maybe even like this (without quotes):

deepl spanish russian ¡Buenos días!

However, this would assume that the words are space separated. This behavior should be double-checked and given a second thought.

ptrstn avatar Oct 03 '21 19:10 ptrstn