Answer the question
In order to leave comments, you need to log in
Command line utility?
How are commands actually implemented in command-line utilities? Those. they are not requested (if we talk about python for example) by input and a dictionary? For some reason, after all, the utility parameters pop up if you press TAB? How it's done? I wanted to write one utility and now I'm thinking how to make it more beautiful.
Answer the question
In order to leave comments, you need to log in
Of course, it would not be good to ask for all command line arguments with input and a dictionary. There are libraries for this: here is argparse
And for TAB autocompletion too: argcomplete
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question