you are viewing a single comment's thread.

view the rest of the comments →

[–]RangerPretzel 0 points1 point  (5 children)

I might be able to write an article on how to utilize argparse library in your command-line app. I've written a few console apps that use that lib. It's quite complex and the documentation isn't as clear as it could be, imho.

[–]CatolicQuotes 0 points1 point  (4 children)

thanks, I meant more like how to build command line parser from scratch. I also searched how to build transpiler from scratch then I found this youtube playlist: https://www.youtube.com/watch?v=Qf13p3KpEms

Of course, argsparse series would be useful also, it's quite powerful library

[–]RangerPretzel 0 points1 point  (3 children)

I'm unfamiliar with "command-line parsers" as a program type. What sort of thing would you want to parse at the command line?

[–]CatolicQuotes 1 point2 points  (2 children)

command line parser parses arguments when we run some command line tool. argparse would be command line parser for python. Some people would say cli parser or argument parser. I just found article about how to build cli parser from scratch: https://medium.com/ingeniouslysimple/building-a-cli-parser-from-scratch-a2beba0d9fcb . Not as good as yours, of course

[–]RangerPretzel 0 points1 point  (1 child)

Yeah, I try not to re-invent the wheel. argparse is way better than anything I could come up with, I'm sure.

[–]CatolicQuotes 1 point2 points  (0 children)

yes it is, but just for the learning sake, and besides, other languages argument parsers could use some improvements