Parse command line options just like GNU getopt_long().
VERSION | = | '4.4.0' unless defined? Main::VERSION |
LIBDIR | = | File.join(File.dirname(File.expand_path(__FILE__)), self.name.downcase, '') unless defined? Main::LIBDIR |
EXIT_SUCCESS | = | 0 unless defined? Main::EXIT_SUCCESS |
EXIT_FAILURE | = | 1 unless defined? Main::EXIT_FAILURE |
EXIT_WARN | = | 42 unless defined? Main::EXIT_WARN |
EXIT_WARNING | = | 42 unless defined? Main::EXIT_WARNING |