>> file argument.sce
args= sciargs();
for argc= 1:size(args,2) do
printf("%d %s\n", argc, args(argc));
end
exit
Then you can run it from console liek:
$ scilab-cli -f
argument.sce
-args 1 a b
$ scilab-adv-cli -f
argument.sce
-args 1 a b
The output:
1 /usr/bin/scilab-cli-bin
2 -f
3 wa.sce
4 -args
5 1
6 a
7 b
Knowing the argument sequence can be a bit of guesswork if the way you pass argument is inconsistent between runs, though.