Answer the question
In order to leave comments, you need to log in
How to pass positional elements to a function?
Good afternoon! Tell me how to pass *args to the function in such a way that, for example, the help parameter when passing is not defined as a string, but is interpreted as a parameter?
Example:
args = ['util', 'help=test']
parser.add_argument(*args)
parser.add_argument('util', help='test')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question