replaces optparse with the newer argparse

Trivial change really. This is just to bring in line the show_weight script with the others with regard to the options parsing.