Whole file
joke2k/faker
The author described this change as “Fix grouping for `-i` CLI parameter (#2309)”. It counts as a record because the checks below fail on the code as it stood at 1c0855ee7 and pass on c48adb7a5, with nothing else changed between the two runs.
Projectjoke2k/faker
Fix saved2026-01-13
Sharing licenceMIT · LICENSE.txt
Change size+3 −2
What the code was meant to do, written into the code itself as a save note
Fix grouping for `-i` CLI parameter (#2309)
The change
| 225 | 225 | parser.add_argument( | |
| 226 | 226 | "-i", | |
| 227 | 227 | "--include", | |
| 228 | - | default=META_PROVIDERS_MODULES, | |
| 229 | - | nargs="*", | |
| 228 | + | action="append", | |
| 230 | 229 | help="list of additional custom providers to " | |
| 231 | 230 | "user, given as the import path of the module " | |
| 232 | 231 | "containing your Provider class (not the provider " | |
| ⋯ | |||
| 252 | 251 | ) | |
| 253 | 252 | ||
| 254 | 253 | arguments = parser.parse_args(self.argv[1:]) | |
| 254 | + | if arguments.include is None: | |
| 255 | + | arguments.include = META_PROVIDERS_MODULES | |
| 255 | 256 | ||
| 256 | 257 | if arguments.verbose: | |
| 257 | 258 | logging.basicConfig(level=logging.DEBUG) | |
The check that tells the two apart
fail→pass·tests/test_cli_arg_parsing.py::TestCLIArgParsing::test_cli_include_argument_parsing
fail→pass·tests/test_cli_arg_parsing.py::TestCLIArgParsing::test_cli_multiple_includes
Check file tests/test_cli_arg_parsing.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it1c0855ee7767de82514a748baa25838d08410b6a
Broken version dated2025-12-29
Modulefaker.cli
Units changedCommand
Fingerprint31770894ca6a5746
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.