The failing command that is shown repeats the sequence " --type A www.xyz" twice, which is a combination of the type option and a positional parameter. As the command only takes two positional parameters, specifying a third one leads to the error that is seen. Specifying just "--type A" twice doesn't raise an error for me.
Having the second occurrence of a parameter override the first one is just working as designed.
The failing command that is shown repeats the sequence " --type A www.xyz" twice, which is a combination of the type option and a positional parameter. As the command only takes two positional parameters, specifying a third one leads to the error that is seen. Specifying just "--type A" twice doesn't raise an error for me.
Having the second occurrence of a parameter override the first one is just working as designed.