Mercurial > clickerconvert > clickerconvert
diff src/cconvert_options.h @ 38:5354cbda7188
Fix HTML Layout. Support multiple formats at once. More handling.
This commit is a bad mix of multiple changes. It addresses:
- HTML Width is now relative and should fix some pdf creation problems.
- Format is now taken from the extension of the file names provided.
- Multiple file names are accepted at once.
- Parser now handles missing values in Multiple choice answers
- Parser now handles unfilled multiple choice values
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 15 Apr 2016 15:19:04 +0200 |
parents | 927794e3cc52 |
children |
line wrap: on
line diff
--- a/src/cconvert_options.h Fri Apr 15 15:15:44 2016 +0200 +++ b/src/cconvert_options.h Fri Apr 15 15:19:04 2016 +0200 @@ -17,13 +17,10 @@ { QList<QCommandLineOption> options; - options << QCommandLineOption(QStringList() << QStringLiteral("format") - << QStringLiteral("f"), - QObject::tr("Output format (default xlsx)."), - QStringLiteral("xlsx pdf html")) - << QCommandLineOption(QStringList() << QStringLiteral("output") + options << QCommandLineOption(QStringList() << QStringLiteral("output") << QStringLiteral("o"), - QObject::tr("write output to file (default stdout)"), + QObject::tr("write output to file (default stdout)") + "\n" + + QObject::tr("The file type is determined by the extension\nEither: .pdf .html or .xlsx (default)"), QObject::tr("file")) << QCommandLineOption(QStringList() << QStringLiteral("title") << QStringLiteral("t"),