MCPcopy Create free account
hub / github.com/QNapi/qnapi / printHelp

Method printHelp

gui/src/qnapicli.cpp:347–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void QNapiCli::printHelp(const QString &binaryFileName) {
348 QString formats =
349 LibQNapi::subtitleFormatsRegistry()->listFormatNames().join(",");
350
351 printCli(tr("QNapi is distributed under the GNU General Public License v2."));
352 printCli();
353 printCli(tr("Syntax: %1 [options] [list of files]").arg(binaryFileName));
354 printCli(tr("Available options:"));
355 printCli(tr(" -c, --console Download subtitles with console"));
356 printCli(
357 tr(" -q, --quiet Download subtitles quietly without "
358 "showing"));
359 printCli(
360 tr(" any messages or windows (implies -d)"));
361 printCli();
362 printCli(
363 tr(" -s, --show-list Show a list of subtitles (works only "
364 "with -c)"));
365 printCli(
366 tr(" -d, --dont-show-list Do not show a list of subtitles (works "
367 "only with -c)"));
368 printCli();
369 printCli(tr(" -l, --lang [code] Preferred subtitles language"));
370 printCli(tr(" -lb,--lang-backup [code] Alternative subtitles language"));
371 printCli(tr(" -f, --format [format] Select target subtitles file "
372 "format (%1)")
373 .arg(formats));
374 printCli(tr(
375 " -e, --extension [ext] Select target subtitles file extension"));
376 printCli();
377 printCli(tr(" -o, --options Show program options (only GUI)"));
378 printCli(tr(" -h, --help Show help text"));
379 printCli(tr(
380 " -hl,--help-languages List of available subtitles languages"));
381 printCli();
382}
383
384void QNapiCli::printHelpLanguages() {
385 printCli(

Callers

nothing calls this directly

Calls 1

listFormatNamesMethod · 0.80

Tested by

no test coverage detected