Commit 920ab51
committed
Use pico-args for arg parsing
I'm not sure if this is really much better than it was before, it would
be handy for the parse_args func to do all the validation and pass back
a consistent error type with a possibility for some other errors wrapped
up in some of the variants.
I ran the tests (not sure if they use the arg parsing or not :D), and
tested with a couple of arg combos and it seems to work.
Regardless of caveats, feel free to merge or close this PR, pico-args is
just one option for arg-parsing. This code could also use improvement,
I'm happy to incorporate feedback.1 parent fb671ab commit 920ab51
3 files changed
Lines changed: 37 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
209 | | - | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
252 | 222 | | |
253 | 223 | | |
254 | 224 | | |
255 | 225 | | |
256 | 226 | | |
257 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
258 | 241 | | |
259 | | - | |
260 | 242 | | |
261 | | - | |
| 243 | + | |
262 | 244 | | |
263 | | - | |
264 | | - | |
| 245 | + | |
| 246 | + | |
265 | 247 | | |
266 | 248 | | |
267 | 249 | | |
| |||
0 commit comments