google / cro3

Abstraction Layer of ChromiumOS development
https://google.github.io/cro3/
BSD 3-Clause "New" or "Revised" License
43 stars 12 forks source link

cro3.bash: Handle if there are short and long options #256

Closed mhiramat closed 5 months ago

mhiramat commented 5 months ago

If an option parameter has short and long formats, those are connected with comma and space. e.g. "-v, --verbosity". This checks the first format ends with ',' (and removes it). In that case, parses the 2nd word as an option.

hikalium commented 5 months ago

@mhiramat sorry for the late reply... The code itself looks good. Can you add a test that covers this case? Thank you!