~iahmad/kubuntu-packaging/qtcreator

« back to all changes in this revision

Viewing changes to src/shared/qbs/src/app/qbs/parser/commandlineoption.cpp

  • Committer: Timo Jyrinki
  • Date: 2014-01-15 07:44:24 UTC
  • mfrom: (1.1.30)
  • Revision ID: timo.jyrinki@canonical.com-20140115074424-3pnj3a1x6s25im9v
ImportĀ upstreamĀ versionĀ 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    Q_UNUSED(command);
61
61
    return Tr::tr("%1|%2 <file>\n"
62
62
            "\tUse <file> as the project file.\n"
63
 
            "\tIf <file> is a directory and it contains a single file ending in '.qbs', "
64
 
            "that file will be used.\n"
65
 
            "\tIf this option is not given at all, the behavior is the same as for '-f .'.\n")
 
63
            "\tIf <file> is a directory and it contains a single file ending in '.qbs',\n"
 
64
            "\tthat file will be used.\n"
 
65
            "\tIf this option is not given at all, behavior is the same as for '-f .'.\n")
66
66
            .arg(longRepresentation(), shortRepresentation());
67
67
}
68
68
 
88
88
    Q_UNUSED(command);
89
89
    return Tr::tr("%1|%2\n"
90
90
            "\tBe more verbose. Increases the log level by one.\n"
91
 
            "\tThis option can be given more than once. Excessive occurrences have no effect.\n"
92
 
            "\tIf the option '%3' appears anywhere on the command line in addition to this option,\n"
93
 
            "\tits value is taken as the base which to increase.\n")
 
91
            "\tThis option can be given more than once.\n"
 
92
            "\tExcessive occurrences have no effect.\n"
 
93
            "\tIf option '%3' appears anywhere on the command line in addition\n"
 
94
            "\tto this option, its value is taken as the base which to increase.\n")
94
95
            .arg(longRepresentation(), shortRepresentation(), loglevelLongRepresentation());
95
96
}
96
97
 
109
110
    Q_UNUSED(command);
110
111
    return Tr::tr("%1|%2\n"
111
112
            "\tBe more quiet. Decreases the log level by one.\n"
112
 
            "\tThis option can be given more than once. Excessive occurrences have no effect.\n"
113
 
            "\tIf option '%3' appears anywhere on the command line in addition to this option,\n"
114
 
            "\tits value is taken as the base which to decrease.\n")
 
113
            "\tThis option can be given more than once.\n"
 
114
            "\tExcessive occurrences have no effect.\n"
 
115
            "\tIf option '%3' appears anywhere on the command line in addition\n"
 
116
            "\tto this option, its value is taken as the base which to decrease.\n")
115
117
            .arg(longRepresentation(), shortRepresentation(), loglevelLongRepresentation());
116
118
}
117
119
 
129
131
{
130
132
    Q_UNUSED(command);
131
133
    return Tr::tr("%1|%2 <n>\n"
132
 
            "\tUse <n> concurrent build jobs. <n> must be an integer greater than zero. "
133
 
                  "The default is the number of cores.\n")
 
134
            "\tUse <n> concurrent build jobs. <n> must be an integer greater than zero.\n"
 
135
            "\tThe default is the number of cores.\n")
134
136
            .arg(longRepresentation(), shortRepresentation());
135
137
}
136
138
 
176
178
{
177
179
    Q_UNUSED(command);
178
180
    return Tr::tr("%1|%2\n"
179
 
            "\tDry run. No commands will be executed and no permanent changes to the "
180
 
                  "build graph will be done.\n").arg(longRepresentation(), shortRepresentation());
 
181
            "\tDry run. No commands will be executed and no permanent changes to the\n"
 
182
            "\tbuild graph will be done.\n")
 
183
            .arg(longRepresentation(), shortRepresentation());
181
184
}
182
185
 
183
186
QString DryRunOption::shortRepresentation() const
283
286
{
284
287
    Q_UNUSED(command);
285
288
    return Tr::tr("%1 <level>\n"
286
 
            "\tUse the specified log level. Possible values are '%2'.\n"
 
289
            "\tUse the specified log level.\n"
 
290
            "\tPossible values are '%2'.\n"
287
291
            "\tThe default is '%3'.\n").arg(longRepresentation(),
288
292
            allLogLevelStrings().join(QLatin1String("', '")), logLevelName(defaultLogLevel()));
289
293
}
325
329
{
326
330
    Q_UNUSED(command);
327
331
    return Tr::tr("%1\n\tDisregard objections.\n"
328
 
                  "\tqbs might refuse to execute a given command because "
329
 
                  "certain circumstances make it seem dubious. This option switches the "
330
 
                  "respective checks off.\n").arg(longRepresentation());
 
332
                  "\tqbs might refuse to execute a given command because certain\n"
 
333
                  "\tcircumstances make it seem dubious. This option switches the\n"
 
334
                  "\trespective checks off.\n").arg(longRepresentation());
331
335
}
332
336
 
333
337
QString ForceOption::longRepresentation() const
339
343
{
340
344
    Q_UNUSED(command);
341
345
    return Tr::tr("%1\n\tForce timestamp checks.\n"
342
 
                  "\tInstead of using the file timestamps that are stored in the build graph, "
343
 
                  "retrieve the timestamps from the file system.\n").arg(longRepresentation());
 
346
                  "\tInstead of using the file timestamps that are stored in the build graph,\n"
 
347
                  "\tretrieve the timestamps from the file system.\n").arg(longRepresentation());
344
348
}
345
349
 
346
350
QString ForceTimeStampCheckOption::longRepresentation() const
360
364
    Q_ASSERT(command == InstallCommandType || command == RunCommandType);
361
365
    Q_UNUSED(command);
362
366
    return Tr::tr("%1 <directory>\n"
363
 
                  "\tInstall into the given directory. The default value is '<build dir>/%2'.\n"
364
 
                  "\tIf the directory does not exist, it will be created. Use the special value "
365
 
                  "'%3' to install into the sysroot (i.e. the value of the property "
366
 
                  "qbs.sysroot).\n")
 
367
                  "\tInstall into the given directory.\n"
 
368
                  "\tThe default value is '<build dir>/%2'.\n"
 
369
                  "\tIf the directory does not exist, it will be created. Use the special\n"
 
370
                  "\tvalue '%3' to install into the sysroot (i.e. the value of the\n"
 
371
                  "\tproperty qbs.sysroot).\n")
367
372
            .arg(longRepresentation(), InstallOptions::defaultInstallRoot(), magicSysrootString());
368
373
}
369
374