Commit 9684e42
committed
Error out on too many command-line arguments
Fix up oid2name, pg_upgrade, and pgbench to error out on too many
command-line arguments. This makes it match the behavior of other
PostgreSQL programs.
Author: Peter Eisentraut, Ibrar Ahmed
Discussion: https://www.postgresql.org/message-id/flat/f2554627-04e7-383a-ef01-ab99bb6a291c%402ndquadrant.com1 parent 317b3d7 commit 9684e42
File tree
3 files changed
+20
-1
lines changed- contrib/oid2name
- src/bin
- pg_upgrade
- pgbench
3 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5540 | 5540 | | |
5541 | 5541 | | |
5542 | 5542 | | |
5543 | | - | |
| 5543 | + | |
5544 | 5544 | | |
5545 | 5545 | | |
5546 | 5546 | | |
| |||
5551 | 5551 | | |
5552 | 5552 | | |
5553 | 5553 | | |
| 5554 | + | |
| 5555 | + | |
| 5556 | + | |
| 5557 | + | |
| 5558 | + | |
| 5559 | + | |
| 5560 | + | |
| 5561 | + | |
5554 | 5562 | | |
5555 | 5563 | | |
5556 | 5564 | | |
| |||
0 commit comments