changeset 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 7a5ba9dadbf7
files main/main.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/main.cpp	Mon Apr 23 14:39:34 2007 +0000
+++ b/main/main.cpp	Fri Apr 27 14:37:48 2007 +0000
@@ -211,7 +211,7 @@
     bool audioOutput = true;
     bool oscSupport = true;
 
-    if (args.contains("--help")) {
+    if (args.contains("--help") || args.contains("-h") || args.contains("-?")) {
         std::cerr << QApplication::tr(
             "\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;
         exit(2);