Make git cl smarter about subcommands typos.
Look for either a unique prefix or for an approximation of the shortest Levenshtein distance. So all of these will resolve to 'git cl upload': git cl upl git cl uplaod These won't resolve: git cl up # it shares prefix with 'upstream' git cl uplao # not similar enough Also align help against longest command instead of hard coded '10'. The help page was distorded. R=iannucci@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/17272002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@206820 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please
register
or
sign in
to comment