MrSludgy / Python

A collection of simple scripts
0 stars 0 forks source link

Use ArgParse #3

Open noval90 opened 6 years ago

noval90 commented 6 years ago

https://docs.python.org/2/howto/argparse.html

noval90 commented 6 years ago

Probably want them to pass a string "#d#"

Validate it with a regex like "[0-9]+d[0-9]+"

Then extract the numbers with another regex into variables.

Then run with it