Commit d3f1857
authored
Fix: Support hyphens in command-line argument names (#576)
Allow CLI arguments to be specified with hyphens instead of only
underscores. For example, `--proxy-auth-headers` now works in addition
to `--proxy_auth_headers`. This matches the standard convention for
command-line arguments where hyphens are typically preferred over
underscores.
The parser now checks both the original config attribute name and a
hyphenated variant when matching arguments, making the CLI more
intuitive and consistent with typical Unix/Linux command-line tools.1 parent 092d563 commit d3f1857
1 file changed
+15
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
0 commit comments