You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a JSON file which contains a large dictionary.
I want to define all properties from this dict as command line options. The contents of the dict are just key => value pairs, so it's not possible to know what properties are in there.
I'm new to Click and Python. Is there a way to read the dict from JSON and use it to define the options for a command?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a JSON file which contains a large dictionary.
I want to define all properties from this dict as command line options. The contents of the dict are just key => value pairs, so it's not possible to know what properties are in there.
I'm new to Click and Python. Is there a way to read the dict from JSON and use it to define the options for a command?
Beta Was this translation helpful? Give feedback.
All reactions