On 23/01/21 04:30, 罗勇刚(Yonggang Luo) wrote:
> We could and I did it in the first version. However it's ugly that the user has to use --python on some setups in order to get a full help message.

  Yeap, but finally configure should gone, so I think --python are acceptable by user, just need make sure to be noticed when the default python
are not python3

When configure will be gone, these 200 lines of Perl will disappear with it, so we don't have to think for future users and developers, but for the present.

I don't expect configure or Makefile to go away completely, because for example things such as "git submodule" handling are easier to do in the shell. However, we also need to evaluate what's the road to a minimal configure (just like our Makefile is pretty minimal, only tests/tcg still has lots of build logic). In that respect, automatic parsing command line simplifies moving things from configure to meson, and that is true no matter what language the parser is written in.

(BTW, I'm not such a Perl fan. I have only ever written like 3 or 4 programs in Perl).

Paolo


Reply via email to