Improve command-line interface: allow to print codes in various formats