prepare for perl args

This commit is contained in:
Unbit
2013-02-23 12:46:14 +01:00
parent dee99b6535
commit 0ff6277f28
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -28,6 +28,9 @@ struct uwsgi_perl {
int no_die_catch;
int stacktrace_available;
char *argv_items;
struct uwsgi_string_list *argv_item;
// this is a pointer to the main list of interpreters (required for signals, rpc....);
PerlInterpreter **main;
+2
View File
@@ -19,6 +19,8 @@ struct uwsgi_option uwsgi_perl_options[] = {
#ifdef PERL_VERSION_STRING
{"perl-version", no_argument, 0, "print perl version", uwsgi_opt_print, PERL_VERSION_STRING, UWSGI_OPT_IMMEDIATE},
#endif
{"perl-args", required_argument, 0, "add items (space separated) to @ARGV", uwsgi_opt_set_str, &uperl.argv_items, 0},
{"perl-arg", required_argument, 0, "add an item to @ARGV", uwsgi_opt_add_string_list, &uperl.argv_item, 0},
{0, 0, 0, 0, 0, 0, 0},
};