Can we override include statement in settings.gradle from command line arguments

My settings.gradle has include statement like below

include ‘sub-module-1’,‘sub-module-2’,‘sub-module-3’ can i read the values of sub-module which i want to include from command line arguments?

I answered a similar question here.