sroberts / jager

Hunting IOCs all day every day...
Other
82 stars 19 forks source link

Fixing argparse and JSON / PDF verification tasks #47

Closed deadbits closed 9 years ago

deadbits commented 9 years ago

This was branched from your Revert "Revert "converted to argparse library"" branch so this PR should fix both the argparse revert problem and adds the following from the branch pdf_cleanup:

sroberts commented 9 years ago

So if i give a -o foo.json for output and foo.json doesn't exist it will hard stop? That wasn't what I had in mind, and certainly not how I use it.

krmaxwell commented 9 years ago

Looking at it, it stops if the input PDF doesn't exist (not the output JSON, which we don't care if it exists previously because we're going to blow it away anyway)

deadbits commented 9 years ago

yeah @krmaxwell has it right. if the input PDF doesn't exist the app will rm the output file and then exit

sroberts commented 9 years ago

Ahhh ok. In that case good by me, anyone else before I merge? :shipit: