118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
-
+
+
+
+
+
+
+
+
+
+
+
+
+
|
execute: ""
},
tfoption: {
short: "",
arg: "+/-name",
description: "Définit les options à utiliser par le formateur de texte.",
execute: ""
}
},
dicomain: {
short: "",
arg: "path/json",
description: "Charge un dictionnaire principal.",
execute: ""
},
dicoperso: {
short: "",
arg: "path/json",
description: "Charge un dictionnaire personnel.",
execute: ""
},
};
var cmdOne = ["json", "perf", "help", "exit"];
var cmdMulti = ["text", "format", "check", "lexique", "spell", "suggest", "morph", "lemma"];
var cmdAll = [...cmdOne, ...cmdMulti];
|
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
|
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
|
-
+
|
repAction["help"].push(' * pour le client exemple: «gramma-cli --command "mot/texte"».');
repAction["help"].push(" * le serveur se lance avec la commande «gramma-cli --server --port 8085».");
repAction["help"].push("");
repAction["help"].push("========================= Les commandes/arguments: ========================");
repAction["help"].push("");
for (const action in cmdAction) {
repAction["help"].push(action.padEnd(10, " ") + ": " + cmdAction[action].arg.padEnd(8, " ") + ": " + cmdAction[action].description);
repAction["help"].push(action.padEnd(10, " ") + ": " + cmdAction[action].arg.padEnd(10, " ") + ": " + cmdAction[action].description);
}
repAction["help"].push("");
repAction["help"].push("================================== Note: ==================================");
repAction["help"].push("");
repAction["help"].push("En mode client: les arguments sont de la forme «--argument» !");
repAction["help"].push("En mode client intéractif: pour les commandes concernant un texte, vous");
repAction["help"].push(" pouvez taper la commande puis Entrée (pour saisir le texte) pour ");
|