gitless icon indicating copy to clipboard operation
gitless copied to clipboard

bad formatting in "wrong subcommand" error: "choose from u'track', u'untrack', ..."

Open juleskers opened this issue 8 years ago • 1 comments
trafficstars

I just started trying gitless 5 minutes ago (evaluating for broader adoption in my group).

Intuitively, I tried short-labels for commands: gl st for gl status This didn't work (which is OK, and not the point I want to make).

The error message I received could use some polish:

gl: error: argument subcmd_name: invalid choice: 'st' (choose from u'track', u'untrack', u'status', u'diff', u'commit', u'branch', u'tag', u'checkout', u'merge', u'resolve', u'fuse', u'remote', u'publish', u'switch', u'init', u'history')

Note the many u'....', which seems to be leaky python unicode strings.

juleskers avatar Apr 25 '17 08:04 juleskers

I see you use python argparse, so this is probably a problem with argparse, and not directly with gitless

juleskers avatar Apr 25 '17 08:04 juleskers