Script Command for Stacking needed

Hello, i want to change my existing Script from normal Stacking to average Stacking

I can do the Stacking in the GUI, but there is no way to see how the Command for a Script could be.

At the Moment i stack like this:
stack r_pp_light rej 3 3 -norm=addscale -output_norm -rgb_equal -out=result

I want to change to average stacking with rejection / additive with scaling / percentile clipping /output normalisation

I search now for 3 hours at the Internet and the Commands, but there is no example for average Stacking that i could find.

Can anyone help me please ?

Thanks

Commands — Siril 1.2.5 documentation ???

Yes, i read this, is clear.

But is average Stacking now sum / med or rej ?
And for p[ercentile] - where the p should be ?

Sorry for this question, but all examples i could find are for rej 3 3 …

This is the syntax you need:

stack seqfilename { rej | mean } [rejection type] [sigma_low sigma_high]  [-rejmap[s]] [-nonorm, -norm=] [filtering] [-fastnorm] [ -weight_from_noise | -weight_from_nbstack | -weight_from_wfwhm | -weight_from_nbstars ] [-rgb_equal] [-output_norm] [-out=filename]

percentile is the rejection type, so it goes after rej and before the two values, they are not 3 and 3 in this case, but look at the values in the GUI

Thank you very much Vincent !
It works excellent.