move setting of Usage function before parsing flags