Mercurial > hg
comparison tests/test-dispatch.t @ 35029:e16f68c4abe3 stable
dispatch: stop parsing of early boolean option at "--"
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 10 Nov 2017 22:27:26 +0900 |
parents | 7384250eabd9 |
children | d9aba3730d30 |
comparison
equal
deleted
inserted
replaced
35028:7f8f9f0369ca | 35029:e16f68c4abe3 |
---|---|
39 | 39 |
40 $ hg log -R -- 2>&1 | grep 'hg log' | 40 $ hg log -R -- 2>&1 | grep 'hg log' |
41 hg log: option -R requires argument | 41 hg log: option -R requires argument |
42 hg log [OPTION]... [FILE] | 42 hg log [OPTION]... [FILE] |
43 (use 'hg log -h' to show more help) | 43 (use 'hg log -h' to show more help) |
44 | |
45 Parsing of early options should stop at "--": | |
46 | |
47 $ hg cat -- --config=hooks.pre-cat=false | |
48 --config=hooks.pre-cat=false: no such file in rev cb9a9f314b8b | |
49 [1] | |
50 $ hg cat -- --debugger | |
51 --debugger: no such file in rev cb9a9f314b8b | |
52 [1] | |
44 | 53 |
45 [defaults] | 54 [defaults] |
46 | 55 |
47 $ hg cat a | 56 $ hg cat a |
48 a | 57 a |