fixed global vs command option parsing