jhuntwv / router_tracker

0 stars 2 forks source link

Improve argument handling #1

Open coxley opened 3 years ago

coxley commented 3 years ago

While super, super barebones you might look into using argparse or click for arg handling. sys.argv totally works but your program will fail for IndexError if you don't supply enough args.

Since this is just exercise, might as well exercise.

jhuntwv commented 3 years ago

Interesting. I had planned to throw some exception handling around it, but it will be nice to learn a more elegant method. Will modify ASAP. Thank you.