Commit graph

804 commits

Author SHA1 Message Date
Jim Miller
eb9e3ba9fe Bump Test Version 4.12.1 2022-04-29 10:31:26 -05:00
Jim Miller
6c3a133ccd Bump Release Version 4.12.0 2022-04-27 11:01:38 -05:00
Jim Miller
b40676518c Bump Test Version 4.11.15 2022-04-26 16:54:43 -05:00
Jim Miller
58a8ca411c Bump Test Version 4.11.14 2022-04-25 21:33:11 -05:00
Jim Miller
e2c6d4be99 Bump Test Version 4.11.13 2022-04-25 11:55:36 -05:00
Jim Miller
80c4f4cb56 Bump Test Version 4.11.12 2022-04-20 19:21:21 -05:00
Jim Miller
d3d0865a00 Bump Test Version 4.11.11 2022-04-16 17:52:31 -05:00
Jim Miller
8653b1520f Bump Test Version 4.11.10 2022-04-13 13:53:40 -05:00
Jim Miller
bdeb2a80f7 Bump Test Version 4.11.9 2022-04-13 10:03:36 -05:00
Jim Miller
9c9a2a22f5 Bump Test Version 4.11.8 2022-04-12 09:36:32 -05:00
Jim Miller
11670b30ba Bump Test Version 4.11.7 2022-04-08 19:36:29 -05:00
Jim Miller
75fc53f93a Bump Test Version 4.11.6 2022-04-08 09:46:50 -05:00
Jim Miller
3a35e4d2d0 Bump Test Version 4.11.5 2022-04-06 10:52:17 -05:00
Jim Miller
81ef198d00 Add --mozilla-cookies CLI option. 2022-04-06 10:52:11 -05:00
Jim Miller
d7f149e990 Bump Test Version 4.11.4 2022-04-05 09:47:05 -05:00
Jim Miller
dc28197c7b Bump Test Version 4.11.3 2022-04-01 09:32:12 -05:00
Jim Miller
eee92b4ebb Bump Test Version 4.11.2 2022-03-27 09:55:48 -05:00
Jim Miller
a8c10bb017 Bump Test Version 4.11.1 2022-03-25 12:08:28 -05:00
Jim Miller
98ea6ba721 Bump Release Version 4.11.0 2022-03-23 09:35:01 -05:00
Jim Miller
fa7cf95ee2 Bump Test Version 4.10.8 2022-03-11 10:27:33 -06:00
Jim Miller
8c6c6991c2 Bump Test Version 4.10.7 2022-03-02 10:00:29 -06:00
Jim Miller
335bfb02c2 Bump Test Version 4.10.6 2022-02-24 21:48:24 -06:00
Jim Miller
9ea9cf4c68 Bump Test Version 4.10.5 2022-02-22 13:10:08 -06:00
Jim Miller
0c02cd98e0 Bump Test Version 4.10.4 2022-02-22 11:31:16 -06:00
Jim Miller
4e4360ec62 Bump Test Version 4.10.3 2022-02-20 11:47:43 -06:00
Jim Miller
28238b18ff Bump Test Version 4.10.2 2022-02-16 11:26:14 -06:00
Jim Miller
fb8ab400b7 Bump Test Version 4.10.1 2022-02-14 14:22:01 -06:00
Jim Miller
c1c18a5a87 Bump Release Version 4.10.0 2022-02-14 09:39:42 -06:00
Jim Miller
54e952748f Bump Test Version 4.9.10 2022-02-02 11:14:13 -06:00
Jim Miller
4da7db4305 Bump Test Version 4.9.9 2022-02-01 12:36:58 -06:00
Jim Miller
01ba441a63 Bump Test Version 4.9.8 2022-02-01 09:10:35 -06:00
Jim Miller
52587ef69b Bump Test Version 4.9.7 2022-01-30 19:32:56 -06:00
Jim Miller
2c00752e23 Bump Test Version 4.9.6 2022-01-30 12:06:06 -06:00
Jim Miller
99236e82ad Bump Test Version 4.9.5 2022-01-30 09:59:16 -06:00
Jim Miller
b99a7fe494 Bump Test Version 4.9.4 2022-01-29 10:19:16 -06:00
Jim Miller
f47f859de0 Bump Test Version 4.9.3 2022-01-23 10:13:45 -06:00
Jim Miller
6194f3d9e7 Bump Test Version 4.9.2 2022-01-20 11:24:00 -06:00
Jim Miller
7b2d6a91fb Bump Test Version 4.9.1 2022-01-11 16:32:04 -06:00
Jim Miller
b2b56e6366 Bump Release Version 4.9.0 2022-01-11 15:58:22 -06:00
Jim Miller
9f77f3a60d Bump Test Version 4.8.8 2022-01-10 09:09:18 -06:00
Jim Miller
bc149a2deb Bump Test Version 4.8.7 2022-01-04 13:06:16 -06:00
Jim Miller
033c38fc91 Bump Test Version 4.8.6 2021-12-21 12:58:28 -06:00
hseg
a43949d123
Refactor main() in cli.py (#781)
* main: Replace return by explicit calls to exit()

In anticipation of breaking out these sections in their own functions

* Make doc-getting flags shortcut

This saves on pointless validation/setup work when only getting help
information. Moreover, these were the only actions that were in the
middle of the parse/validate/setup/run core logic of main(), moving them
out clears the way to cleanly breaking it up.

Removes -v alias for --version. If this is undesirable, a trick similar
to that for --sites-list can be used to shortcut it as well.

* Move up flag implication logic, var renaming

These are "virtual flags", should be set up asap after actual flags are
setup. Ideally, these would be set up in arg parsing, but this is
sometimes impossible/impractical.

Future improvement: use callbacks to say eg --updatealways sets
options.update, options.updatealways

* Move up validation

Fail fast if the arguments are invalid

* Internalize list_only into options

Helps keep related state together

* Pack up configs, printers for easier passing

* Break up main() into phases

* Remove unnecessary semicolon

* Unbundle configs, printers

This reverts commit 5dd44bbfc3.
Revertion reasons:
1) Initial commit was broken -- it reordered parameters in invocations
   to `get_config()`. This happened because python complained about
   invocations of the form `f(x,**d,z)` -- positional parameters may not
   appear after kwarg expansion. I mistakenly believed kwarg expansion
   would consume the slots of those parameters, and so this code would
   be equivalent to `f(x,z,**d)`. Instead, this passes `z` to the second
   positional parameter, which luckily enough had a key contained in `d`
   so it only caused a TypeError over the multiple values for that
   parameter.
2) To maintain the vision of the original commit would require multiple
   pessimizations *over* the previous state. Specifically:
   1) Using our running example of invocations of the form `f(x,**d,z)`,
      we'd need to turn `z` into a keyword argument. Since Python has no
      way of writing "`z` is a keyword argument whose value is taken
      from the current scope", that forces writing `f(x,**d,z=z)`.
      (Even if a proposal like <https://lwn.net/Articles/818129/> is
      accepted, we wouldn't be able to use it since we need to support
      Python 2)
   2) `dispatch()` uses `fail` internally. So we have one of two
      options:
      * Bundle `warn, fail` in `dispatch`'s arguments, and add a line
        `fail=printers['fail']` to the top of `dispatch`
      * Don't bundle `warn, fail` in `dispatch`'s arguments, and have
        `dispatch` bundle them instead
      Neither of these is palatable, especially over
      * Don't bundle `warn, fail` anywhere

* Restore -v alias for version

As 0847fc9 suggested might be desired
2021-12-21 12:21:02 -06:00
Jim Miller
61bc732810 Bump Test Version 4.8.5 2021-12-19 12:10:54 -06:00
gesh
c0d776f64c cli.py: move out parseArgs
Resolves: #779
2021-12-19 03:48:35 +02:00
Jim Miller
a2dd11326f Bump Test Version 4.8.4 2021-12-14 19:36:34 -06:00
Jim Miller
6fc9aa6dfc Bump Test Version 4.8.3 2021-12-11 19:32:16 -06:00
Jim Miller
80fb72928e Bump Test Version 4.8.2 2021-12-10 10:12:27 -06:00
Jim Miller
89e731031c Bump Test Version 4.8.1 2021-12-03 10:56:46 -06:00
Jim Miller
a2523f1a1e Bump Release Version 4.8.0 2021-12-02 09:33:07 -06:00