ctest: Simplify command line argument handlers

Replace the individual lambdas that only assign or append their value
to a field with small helpers.
1 file changed