fix option extraction with no arguments
implement --status