Python CLI Building | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Python CLI Building

How can I make a CLI(command-line interface) with Python? I tried A LOT of times but didn't work

5th Apr 2017, 8:35 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
3 Answers
+ 3
Nobody likes me:(
7th Apr 2017, 7:24 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 2
Too late but ty for the answer @Daniel
8th Jul 2017, 6:31 AM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
0
I had the same idea: making a CLI you can easily excecute functions with and add more functions if wished. I started by programming a function that takes a command, splits it into it's components and uses them to call other functions. So the command should refere to the function you want to call and all arguments the functions needs.
7th Jul 2017, 5:02 PM
Daniel
Daniel - avatar