[PATCH openEuler-1.0-LTS 2/2] lib/cmdline: fix get_option() for strings starting with hyphen