The v1/v2 checking code for st-flash is dependent on the number of arguments provided. is listed as an option argument but if you you provide that argument then the argument parser assumes you are talking to a v1 device because 4 arguments are provided.