google / cro3

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

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

Closed mhiramat closed 2 weeks ago

mhiramat commented 3 weeks 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 3 weeks ago

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