A Simple Python Command Line Interface Prototype

preview_player
Показать описание
What does a really simple command line interface prototype need to include? What you might call a naive implementation because it only uses Python list comprehensions and conditional logic to do its parsing, and it doesn’t include any kind of type validation.

Рекомендации по теме
Комментарии
Автор

3:19 This could be solved by doing regular if-statements without elif. Then the last option would be active.
Overall nice simple solution, if not complex behavior is required.

thingsiplay
Автор

Very nice concept. I guess argparse is the next step which is what I use

MrKYT-gbgs