I'm working on a python module that fetches, downloads/updates and then automatically installes other modules. How do I use **kwargs (or an alternative) without needing =True on the end for a "flags" system?
I'm not very experienced in general so I'm not sure what do do here
Currently, for the silent flag to work, It has to look like this:
pyup.imp(["psutil","shutil","os","sys","pyinstaller"],silent=True)
but I want the call function to look like this:
pyup.imp(["psutil","shutil","os","sys","pyinstaller"],silent)
The function itself looks like this (in pyup.py):
def imp(libs = [], *args, **kwargs):
where libs[] is the array containing the wanted libraries.
How do I make the function call not require "=True"?