Commit b6b93a5
Victor
Change the command line parser to argparse
According to the docs, optparse is deprecated
(http://docs.python.org/py3k/library/optparse.html), so that leaves us
with argparse.
Rundown of what was done:
+ removed arguments:
* -o since output can just be redirected
* -l and -v they're not necessary
+ made the filename a positional argument
+ made the necessary changes to accomodate for the above1 parent f489d39 commit b6b93a5
1 file changed
+17
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
263 | 255 | | |
264 | 256 | | |
265 | 257 | | |
266 | 258 | | |
267 | 259 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
0 commit comments