[PATCH] unify argument parser
Submitted by Tomer Froumin
Assigned to Ray Strode @halfline
Description
Created attachment 100525 unified parser patch
I noticed that plymouth command line was somewhat askew. When I searched how to work with it some sites showed to use commands starting with -- and some without. When I tried to use it I noticed sometimes it worked and sometimes some options were ignored. Finally I looked in the code and noticed there are 2 separate parsers, so I decided to unify them and fix the support so commands can be invoked both with -- prefix and without.
Attached is the patch I wrote. I used optarg, is there any reason why plymouth parsed arguments on its own?
Attachment 100525, "unified parser patch":
parse_opts.patch