diff options
author | David Robillard <d@drobilla.net> | 2012-01-14 17:42:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-14 17:42:07 +0000 |
commit | 812641ade19679a953fb1c2b6360e4536debbbed (patch) | |
tree | 52920a30b7d384331298c6ad3b5db50e02944e19 | |
parent | e3055432b6c845f9dc4d9060a747c3dfc0da2860 (diff) | |
download | raul-812641ade19679a953fb1c2b6360e4536debbbed.tar.gz raul-812641ade19679a953fb1c2b6360e4536debbbed.tar.bz2 raul-812641ade19679a953fb1c2b6360e4536debbbed.zip |
Load files passed on command line without -l option (fix #804).
Patch from Albert Graef.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3940 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | raul/Configuration.hpp | 1 | ||||
-rw-r--r-- | src/Configuration.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/raul/Configuration.hpp b/raul/Configuration.hpp index 7a96ed7..655696a 100644 --- a/raul/Configuration.hpp +++ b/raul/Configuration.hpp @@ -61,6 +61,7 @@ public: void print(std::ostream& os, const std::string mime_type="text/plain") const; const Raul::Atom& option(const std::string& long_name); + const std::list<std::string>& files() const { return _files; } private: struct Option { diff --git a/src/Configuration.cpp b/src/Configuration.cpp index baf4e2a..88756e7 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -52,7 +52,7 @@ Configuration::add( void Configuration::print_usage(const std::string& program, std::ostream& os) { - os << "Usage: " << program << " [OPTIONS]" << endl; + os << "Usage: " << program << " [OPTION]..." << endl; os << _shortdesc << endl << endl; os << _desc << endl << endl; os << "Options:" << endl; |