parent
d7f1292c31
commit
6eb3cf7e76
|
@ -162,8 +162,9 @@ sub getargv ($) { #{{{
|
||||||
|
|
||||||
sub setargv ($@) { #{{{
|
sub setargv ($@) { #{{{
|
||||||
my $plugin=shift;
|
my $plugin=shift;
|
||||||
|
my $array=shift;
|
||||||
|
|
||||||
@ARGV=@_;
|
@ARGV=@$array;
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
sub inject ($@) { #{{{
|
sub inject ($@) { #{{{
|
||||||
|
|
|
@ -54,7 +54,7 @@ stored state, call `getstate("page", "id", "key")`, and to store state,
|
||||||
call `setstate("page", "id", "key", "value")`.
|
call `setstate("page", "id", "key", "value")`.
|
||||||
|
|
||||||
To access ikiwiki's ARGV array, call `getargv()`. To change its ARGV, call
|
To access ikiwiki's ARGV array, call `getargv()`. To change its ARGV, call
|
||||||
`setargv(value)`.
|
`setargv(array)`.
|
||||||
|
|
||||||
## Notes on function parameters
|
## Notes on function parameters
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue