comparison main/main.cpp @ 133:a5733f662a5c

* Permit -h and -? as well as --help (closes #1707126)
author Chris Cannam
date Fri, 27 Apr 2007 14:37:48 +0000
parents 784ea35d07dd
children 006c90387f40
comparison
equal deleted inserted replaced
132:784ea35d07dd 133:a5733f662a5c
209 svSystemSpecificInitialisation(); 209 svSystemSpecificInitialisation();
210 210
211 bool audioOutput = true; 211 bool audioOutput = true;
212 bool oscSupport = true; 212 bool oscSupport = true;
213 213
214 if (args.contains("--help")) { 214 if (args.contains("--help") || args.contains("-h") || args.contains("-?")) {
215 std::cerr << QApplication::tr( 215 std::cerr << QApplication::tr(
216 "\nSonic Visualiser is a program for viewing and exploring audio data\nfor semantic music analysis and annotation.\n\nUsage:\n\n %1 [--no-audio] [--no-osc] [<file> ...]\n\n --no-audio: Do not attempt to open an audio output device\n --no-osc: Do not provide an Open Sound Control port for remote control\n <file>: One or more Sonic Visualiser (.sv) and audio files may be provided.\n").arg(argv[0]).toStdString() << std::endl; 216 "\nSonic Visualiser is a program for viewing and exploring audio data\nfor semantic music analysis and annotation.\n\nUsage:\n\n %1 [--no-audio] [--no-osc] [<file> ...]\n\n --no-audio: Do not attempt to open an audio output device\n --no-osc: Do not provide an Open Sound Control port for remote control\n <file>: One or more Sonic Visualiser (.sv) and audio files may be provided.\n").arg(argv[0]).toStdString() << std::endl;
217 exit(2); 217 exit(2);
218 } 218 }
219 219