# HG changeset patch # User jbe # Date 1420744037 -3600 # Node ID 6016547c6410fe0a2d814d5d571c4944faee7819 # Parent a556c89270fe1803a99293950a9289755c5d9d60 Changed invocation of moonbridge command: single script with additional command line arguments for script diff -r a556c89270fe -r 6016547c6410 moonbridge.c --- a/moonbridge.c Sun Jan 04 19:37:19 2015 +0100 +++ b/moonbridge.c Thu Jan 08 20:07:17 2015 +0100 @@ -2530,7 +2530,7 @@ fprintf(out, " [-l|--logfile ] \\\n"); fprintf(out, " [-p|--pidfile ] \\\n"); fprintf(out, " [-s|--stats] \\\n"); - fprintf(out, " [ ...]\n"); + fprintf(out, " -- []\n"); exit(err); } @@ -2609,7 +2609,7 @@ moonbr_usage_error(); } } - if (argc - optind <= 0) moonbr_usage_error(); + if (argc - optind < 1) moonbr_usage_error(); if (pid_filename) { pid_t otherpid; while ((moonbr_pidfh = pidfile_open(pid_filename, 0644, &otherpid)) == NULL) { @@ -2687,19 +2687,15 @@ lua_pushcfunction(L, moonbr_listen); lua_setglobal(L, "listen"); lua_pushcfunction(L, moonbr_addtraceback); // on stack position 1 - { - int i; - for (i=optind; i