use --cmd-dump in compare-cmd