hgext/githelp.py
changeset 38130 a40cc6d7d8c3
parent 38129 c65931d23baf
child 38142 cfa93fbbe9b4
--- a/hgext/githelp.py	Tue May 22 20:43:42 2018 +0900
+++ b/hgext/githelp.py	Tue May 22 23:48:08 2018 -0400
@@ -94,10 +94,9 @@
             try:
                 args.remove(flag)
             except Exception:
-                raise error.Abort(
-                    "unknown option {0} packed with other options\n"
-                    "Please try passing the option as it's own flag: -{0}" \
-                    .format(ex.opt))
+                msg = _("unknown option '{0}' packed with other options")
+                hint = _("please try passing the option as its own flag: -{0}")
+                raise error.Abort(msg.format(ex.opt), hint=hint.format(ex.opt))
 
             ui.warn(_("ignoring unknown option %s\n") % flag)