factor help script command into parts