Duplicate Flags issue - Correctness Break
Issue
Argpaser library currently accepts duplicate flags and overrides previous values with the last one. Duplicate flags should exit with 255.
Input
{"input":["-p", "%PORT%", "-i", "%IP%", "-a", "ted", "-n", "10.00"]},{"input":["-p", "%PORT%", "-i", "%IP%", "-gated", "-g"]}
Target Breaks
- 60_team16-break1
- 110_test7
- 372_team16-break3b
- 561_group16-a_ga2
- 572_group16-g_duplicates
- 965_break33
- 966_break34
- 1058_Game_Of_ThrowsBreak4
- 1060_Game_Of_ThrowsBreak6
- 1064_Game_Of_ThrowsBreak10
- 738_break20
Hint
Class ArgsValidator -> function validate_duplicate_actions or if condition of function get_args
May be use append option provided by argparser to detect flags repetition.