[lib] better handling for format command