1. Use argparse module instead of getopt module.
2. Use -s to identify script tag instead of -d.