CLIProcessor.cpp   CLIProcessor.cpp 
skipping to change at line 57 skipping to change at line 57
binName.remove(QRegExp("^.*[/\\\\]")); binName.remove(QRegExp("^.*[/\\\\]"));
std::cout << "Usage:\n" std::cout << "Usage:\n"
<< " " << " "
<< qPrintable(binName) << " [options]\n\n" << qPrintable(binName) << " [options]\n\n"
<< "Options:\n" << "Options:\n"
<< "--version (or -v) : Print program name a nd version and exit.\n" << "--version (or -v) : Print program name a nd version and exit.\n"
<< "--help (or -h) : This cruft.\n" << "--help (or -h) : This cruft.\n"
<< "--config-file (or -c) : Use an alternative n ame for the config file\n" << "--config-file (or -c) : Use an alternative n ame for the config file\n"
<< "--user-dir (or -u) : Use an alternative u ser data directory\n" << "--user-dir (or -u) : Use an alternative u ser data directory\n"
//<< "--safe-mode (or -s) : Disable GL shaders #ifdef Q_OS_WIN
and use older GL engine\n" << "--angle-mode (or -a) : Use ANGLE as OpenGL
<< "--dump-opengl-details (or -d) : dump informati ES2 rendering engine\n"
on about OpenGL support to logfile\n" << "--mesa-mode (or -m) : Use MESA as software
<< " Try this is you have OpenGL rendering engine\n"
graphics problems\n" << "--safe-mode (or -s) : Synonymous to --mesa
-mode \n"
#endif
<< "--dump-opengl-details (or -d) : dump informati
on about OpenGL support to logfile.\n"
<< " Use this is you have
graphics problems\n"
<< " and want to send a b
ug report\n"
<< "--full-screen (or -f) : With argument \"yes\ " or \"no\" over-rides\n" << "--full-screen (or -f) : With argument \"yes\ " or \"no\" over-rides\n"
<< " the full screen sett ing in the config file\n" << " the full screen sett ing in the config file\n"
<< "--screenshot-dir : Specify directory to save screenshots\n" << "--screenshot-dir : Specify directory to save screenshots\n"
<< "--startup-script : Specify name of star tup script\n" << "--startup-script : Specify name of star tup script\n"
<< "--home-planet : Specify observer pla net (English name)\n" << "--home-planet : Specify observer pla net (English name)\n"
<< "--altitude : Specify observer alt itude in meters\n" << "--altitude : Specify observer alt itude in meters\n"
<< "--longitude : Specify longitude, e .g. +53d58\\'16.65\\\"\n" << "--longitude : Specify longitude, e .g. +53d58\\'16.65\\\"\n"
<< "--latitude : Specify latitude, e. g. -1d4\\'27.48\\\"\n" << "--latitude : Specify latitude, e. g. -1d4\\'27.48\\\"\n"
<< "--list-landscapes : Print a list of valu e landscape IDs\n" << "--list-landscapes : Print a list of vali d landscape IDs\n"
<< "--landscape : Start using landscap e whose ID (dir name)\n" << "--landscape : Start using landscap e whose ID (dir name)\n"
<< " is passed as paramet er to option\n" << " is passed as paramet er to option\n"
<< "--sky-date : Specify sky date in format yyyymmdd\n" << "--sky-date : Specify sky date in format yyyymmdd\n"
<< "--sky-time : Specify sky time in format hh:mm:ss\n" << "--sky-time : Specify sky time in format hh:mm:ss\n"
<< "--fov : Specify the field of view (degrees)\n" << "--fov : Specify the field of view (degrees)\n"
<< "--projection-type : Specify projection t ype, e.g. stereographic\n" << "--projection-type : Specify projection t ype, e.g. stereographic\n"
<< "--restore-defaults : Delete existing conf ig.ini and use defaults\n" << "--restore-defaults : Delete existing conf ig.ini and use defaults\n"
<< "--multires-image : With filename / URL argument, specify a\n" << "--multires-image : With filename / URL argument, specify a\n"
<< " multi-resolution ima ge to load\n"; << " multi-resolution ima ge to load\n";
exit(0); exit(0);
} }
/* #ifdef Q_OS_WIN
if (argsGetOption(argList, "-s", "--safe-mode")) if (argsGetOption(argList, "-s", "--safe-mode"))
{ {
qApp->setProperty("onetime_safe_mode", true); qApp->setProperty("onetime_mesa_mode", true);
} }
*/ if (argsGetOption(argList, "-a", "--angle-mode"))
{
qApp->setProperty("onetime_angle_mode", true);
}
if (argsGetOption(argList, "-m", "--mesa-mode"))
{
qApp->setProperty("onetime_mesa_mode", true);
}
#endif
if (argsGetOption(argList, "", "--list-landscapes")) if (argsGetOption(argList, "", "--list-landscapes"))
{ {
const QSet<QString>& landscapeIds = StelFileMgr::listContent s("landscapes", StelFileMgr::Directory); const QSet<QString>& landscapeIds = StelFileMgr::listContent s("landscapes", StelFileMgr::Directory);
foreach (const QString& i, landscapeIds) foreach (const QString& i, landscapeIds)
{ {
// finding the file will throw an exception if it is not found // finding the file will throw an exception if it is not found
// in that case we won't output the landscape ID as it cannot work // in that case we won't output the landscape ID as it cannot work
if (!StelFileMgr::findFile("landscapes/" + i + "/lan dscape.ini").isEmpty()) if (!StelFileMgr::findFile("landscapes/" + i + "/lan dscape.ini").isEmpty())
std::cout << qPrintable(i) << std::endl; std::cout << qPrintable(i) << std::endl;
} }
 End of changes. 5 change blocks. 
11 lines changed or deleted 26 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/