Reviewed-by: sla, ctornqvi, lfoltan, mchung, alanb
Added a regression test that will fail if we allow extra characters after flag names Reviewed-by: ctornqvi, tschatzl