derwiki / scripts

Repository of shell scripts that have made my life easier
10 stars 3 forks source link

File input/outputs as arguments / optionParser #1

Open derwiki opened 13 years ago

derwiki commented 13 years ago

instead of using pipes, it might be more performant to take the input and output files as arguments (in the case you're reading from a file or writing to a file -- if not, use standard unix redirection)

ex: json2csv.py -i input.json -o output.json

At this point, option parsing is complicated enough that we should move to a full optionParser