use python decorator to implement command line cmds.