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.

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

225225 parser.add_argument(
226226 "-i",
227227 "--include",
228- default=META_PROVIDERS_MODULES,
229- nargs="*",
228+ action="append",
230229 help="list of additional custom providers to "
231230 "user, given as the import path of the module "
232231 "containing your Provider class (not the provider "
252251 )
253252
254253 arguments = parser.parse_args(self.argv[1:])
254+ if arguments.include is None:
255+ arguments.include = META_PROVIDERS_MODULES
255256
256257 if arguments.verbose:
257258 logging.basicConfig(level=logging.DEBUG)

The check that tells the two apart

failpass·tests/test_cli_arg_parsing.py::TestCLIArgParsing::test_cli_include_argument_parsing
failpass·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.

Other bugs found in joke2k/faker