dotcloud/dotcloud-cli — pull request #13 by jeddenlea (2012-07-27 23:10:17+00:00)
Title: Clean up CLI interface

My earlier pull request sucked. I barely know how to use git yet, so I accidentally pushed some things earlier. Now I've created a clean branch which can be diffed!
....

Perhaps the biggest changes here are:

* Use -a instead of -A for "application", because this is one of the most frequently used args.
* Remove single-letter shortcuts for git/hg/rsync, because they were very inconsistent, and not something we want changed accidentally.
* "dotcloud var ..." now accepts empty strings as values, and strings with "=" in them, but no longer accepts empty var names.
* Restart now requires a specific instance number, so that people might not mistakenly believe they've restarted all of their instances (not that they probably should ever do that).
* "dotcloud service" has been removed.

Lots more scrubbing can be done. There are a lot of places where you can provide bogus input and get an error that says "404" rather than, something meaningful like "that's not an appropriate application name".