jedbrown / git-fat

Simple way to handle fat files without committing them to git, supports synchronization using rsync
BSD 2-Clause "Simplified" License
620 stars 136 forks source link

Argument parsing with argparse? #11

Open bilderbuchi opened 11 years ago

bilderbuchi commented 11 years ago

I didn't want to pollute the PR discussion of #10 further, so I'll ask this way: Considering that the API/argument structure will probably grow in complexity, have you considered using argparse to parse the arguments? I've used it in the past and found it pretty convenient, with automatic exiting if the arguments don't match the expected structure, semi-automatic help-file generation, etc.

tomasherman commented 11 years ago

Yeah, i think it's definitely a good idea to use something like this. I used optparse in past (prequel to argparse) and it's indeed very useful.

jedbrown commented 11 years ago

Yes, when i started git-fat, I wanted to avoid the dependency (it's not in the default distribution prior to python-2.7), but it is easy enough to install and, in retrospect, I probably should have just used it to start with.