Permalink
Browse files

loader: Update help and show more helpful messages

  • Loading branch information...
arteymix committed Jan 7, 2017
1 parent bba1410 commit d0cac0166476febf0c5f8de8525adf00cd553cdc
Showing with 3 additions and 5 deletions.
  1. +3 −5 bin/vsgi-loader.vala
View
@@ -56,22 +56,20 @@ namespace VSGI {
"supported for the '--server' option. They correspond to 'http', 'fastcgi' and\n" +
"'scgi' values respectively.\n" +
"\n" +
"MODULE is the shared library name without the 'lib' prefix and extension and\n" +
"SYMBOL identifies a symbol in the library respecting the 'ApplicationCallback'\n" +
"signature.\n" +
"MODULE is the shared library name without the 'lib' prefix and extension suffix.\n" +
"\n" +
"SERVER_OPTION is forwarded to the server and must be separated from other\n" +
"arguments by a '--' delimiter.");
parser.add_main_entries (options, null);
parser.parse (ref args);
} catch (OptionError err) {
stderr.puts (err.message);
stderr.printf ("%s, specify '--help' for all available options.\n", err.message);
return 1;
}
// count the remaining arguments once parsed
if (args.length < 2) {
stderr.printf ("Module is missing.\n");
stderr.printf ("Module is missing, specify '--help' for detailed usage.\n");
return 1;
}

0 comments on commit d0cac01

Please sign in to comment.