title: Python: cmd execute last command while prompt and empty line
body: <p>The question may be not clear enough to get.</p>
  
  <p>Let me clear in details. I'm using python cmd library to implement my own CLI framework and when hit the enter button without typing any command it executes last command. This it not one I wanna do.</p>
  
  <pre><code>mycli~: cmd --args
  executes command
  execution stops
  mycli~:[hit enter button]
  </code></pre>
  
  <p>Then it will execute again cmd --args. However I just want to go down with new line.</p>