Commit a5f91ab
committed
src: throw when -c and -e are used simultaneously
The -c flag ("check script syntax") and -e flag ("evaluate given code")
have contradictory meanings. Make them mutually exclusive by throwing
when both of them are provided.
Fixes: #11680
PR-URL: #11689
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>1 parent 3209a8e commit a5f91abCopy full SHA for a5f91ab
File tree
Expand file treeCollapse file tree
2 files changed
+22
-1
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
2 files changed
+22
-1
lines changedOpen diff view settings
Collapse file
+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3816 | 3816 | |
3817 | 3817 | |
3818 | 3818 | |
| 3819 | + |
| 3820 | + |
| 3821 | + |
| 3822 | + |
| 3823 | + |
| 3824 | + |
3819 | 3825 | |
3820 | 3826 | |
3821 | 3827 | |
|
Collapse file
test/parallel/test-cli-syntax.js
Copy file name to clipboardExpand all lines: test/parallel/test-cli-syntax.js+16-1Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
99 | 99 | |
100 | 100 | |
101 | 101 | |
102 | | - |
| 102 | + |
103 | 103 | |
104 | 104 | |
105 | 105 | |
| ||
117 | 117 | |
118 | 118 | |
119 | 119 | |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
0 commit comments