[caveman] fix usage of {(a|b)} provided by user