Improve help text and error-reporting for ardour-export
[ardour.git] / session_utils / export.cc
index 6ea7e2b5fdb3f0b92dc6b27d257c3897126abad9..aaea10a9763dda7494bf847ea8d58299163c2232 100644 (file)
@@ -157,8 +157,11 @@ static void usage (int status) {
   -V, --version              print version information and exit\n\
 \n");
        printf ("\n\
-The session is exported as 16bit wav.\n\
-If the no output file is given, the session's export dir is used.\n\
+This tool exports the session-range of a given ardour-session to a 16bit wav,\n\
+using the master-bus outputs.\n\
+If the no output-file is given, the session's export dir is used.\n\
+\n\
+Note: the tool expects a session-name without .ardour file-name extension.\n\
 \n");
 
        printf ("Report bugs to <http://tracker.ardour.org/>\n"
@@ -172,13 +175,13 @@ int main (int argc, char* argv[])
        std::string outfile;
        bool normalize = false;
 
-       const char *optstring = "hno:r:V";
+       const char *optstring = "hno:s:V";
 
        const struct option longopts[] = {
                { "help",       0, 0, 'h' },
                { "normalize",  0, 0, 'n' },
                { "output",     1, 0, 'o' },
-               { "samplerate", 1, 0, 'r' },
+               { "samplerate", 1, 0, 's' },
                { "version",    0, 0, 'V' },
        };
 
@@ -228,7 +231,7 @@ int main (int argc, char* argv[])
                usage (EXIT_FAILURE);
        }
 
-       SessionUtils::init();
+       SessionUtils::init(false);
        Session* s = 0;
 
        s = SessionUtils::load_session (argv[optind], argv[optind+1]);