diff tests/test-rhg.t @ 45440:a6a000ab135b

rhg: print error message when argument parsing fails Differential Revision: https://phab.mercurial-scm.org/D8956
author Antoine Cezar <antoine.cezar@octobus.net>
date Mon, 17 Aug 2020 16:55:43 +0200
parents e339693addc0
children f17caf8f3fef
line wrap: on
line diff
--- a/tests/test-rhg.t	Thu Aug 13 16:36:42 2020 +0200
+++ b/tests/test-rhg.t	Mon Aug 17 16:55:43 2020 +0200
@@ -12,6 +12,12 @@
 
 Unimplemented command
   $ rhg unimplemented-command
+  error: Found argument 'unimplemented-command' which wasn't expected, or isn't valid in this context
+  
+  USAGE:
+      rhg <SUBCOMMAND>
+  
+  For more information try --help
   [252]
 
 Finding root