optimize output, change help

This commit is contained in:
mathias committed 2022-10-01 16:58:57 +02:00
1 parent c8c5144346
commit d23365cb84
2 files changed
+1 -7

No files matched your search

-6
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
+1 -1
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));