[cwctl] allow overriding config settings from the command line (closes #5557656)
eg.
cubicweb-ctl start -p port:8082 myapp
to overload the port parameter defined in the all-in-one.conf file.
functiondatetuple(d){return[d.getFullYear(),d.getMonth()+1,d.getDate(),d.getHours(),d.getMinutes()];}functionpprint(obj){print('{');for(kinobj){print(' '+k+' = '+obj[k]);}print('}');}functionarrayrepr(array){return'['+array.join(', ')+']';}functionassertArrayEquals(array1,array2){if(array1.length!=array2.length){thrownewcrosscheck.AssertionFailure(array1.join(', ')+' != '+array2.join(', '));}for(vari=0;i<array1.length;i++){if(array1[i]!=array2[i]){thrownewcrosscheck.AssertionFailure(arrayrepr(array1)+' and '+arrayrepr(array2)+' differs at index '+i);}}}