frida / frida-tools

Frida CLI tools
Other
344 stars 93 forks source link

Migrate from deprecated optparse to argparse #75

Closed yotamN closed 2 years ago

yotamN commented 2 years ago

Optparse is deprecated since Python 3.2 (more than 10 years ago!) so it's time to migrate to the newer argparse module that is still supported.

There wasn't much to change because argparse tries as best as it can to be backward compatible. Mostly what was changed is callback arguments and handling of extra arguments.

I also deleted redundant arguments that were the default anyway.

There's still more testing to do, that is why I marked it as WIP but I wanted to get feedback as soon as possible and I hope there won't be any more changes, except bug fixes of course.

yotamN commented 2 years ago

Tested a bit more, of course would be glad for more testing but I hope it's okay