Parse command flags and generate usage text