comparison 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
comparison
equal deleted inserted replaced
45439:fbc373b7cbc3 45440:a6a000ab135b
10 > fi 10 > fi
11 > } 11 > }
12 12
13 Unimplemented command 13 Unimplemented command
14 $ rhg unimplemented-command 14 $ rhg unimplemented-command
15 error: Found argument 'unimplemented-command' which wasn't expected, or isn't valid in this context
16
17 USAGE:
18 rhg <SUBCOMMAND>
19
20 For more information try --help
15 [252] 21 [252]
16 22
17 Finding root 23 Finding root
18 $ rhg root 24 $ rhg root
19 abort: no repository found in '$TESTTMP' (.hg not found)! 25 abort: no repository found in '$TESTTMP' (.hg not found)!