optimize output, change help

master
Mathias Rothenhaeusler 2022-10-01 16:58:57 +02:00
parent c8c5144346
commit d23365cb84
2 changed files with 1 additions and 7 deletions

View File

@ -17,12 +17,6 @@ args:
help: The language your text should be tranlated to. Default is EN-US
takes_value: true
required: false
- file:
short: f
long: file
help: File you want to translate.
required: false
takes_value: true
- INPUT:
help: Text to translate
required: true

View File

@ -79,7 +79,7 @@ pub mod deepl_helper {
let mut trans: String = String::new();
for translation in self.translations.iter() {
trans.push_str(&format!(
"--- Detected Source language {} -------------------------\n",
"--- Detected Source Language {} -------------------------\n",
translation.detected_source_language)
);
trans.push_str(&format!("{}: {}", target_language, translation.text));