-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for clash between CLI and JSON args (#1420)
* makes spin forts and catch pokemon config in json not being overwritten by default cli args value if user dont provide cli args * huge fix to how cli and json parameters are loaded The CLI parameter parser now uses JSON-loaded parameters as first fallback to missing parameters. The second fallback to missing parameters are the default values previously used. This is the perfect handling for making CLI args override JSON configuration only for provided args. Non-provided args that are not found in are set to the default value we think most users are going to like. * overriding config from loaded JSON is not necessary here anymore * trying to fix the auth_service parameters * add mixing cli args fixes that were forgotten * fixing unicode load in location * refactoring parameter configuration to avoid mistakes * changed the order of functions in pokecli.py to follow some guidelines main function comes first all all its children below
- Loading branch information
1 parent
522e35f
commit 8852f62
Showing
1 changed file
with
177 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters