fix --hex in cli utility