code: def parse_cmdline():
      
      parser = ArgumentParser(prog="genbank_get_genomes_by_taxon.py")
      parser.add_argument(
          "-o",
          "--outdir",
          dest="outdirname",
          required=True,
          action="store",
          default=None,
          help="Output directory (required)")
      parser.add_argument(
          "-t",
          "--taxon",
          dest="taxon",
          action="store",
          default=None,
          help="NCBI taxonomy ID")
      parser.add_argument(
          "-v",
          "--verbose",
          dest="verbose",
          action="store_true",
          default=False,
          help="Give verbose output")
      parser.add_argument(
          "-f",
          "--force",
          dest="force",
          action="store_true",
          default=False,
          help="Force file overwriting")
      parser.add_argument(
          "--noclobber",
          dest="noclobber",
          action="store_true",
          default=False,
          help="Don't nuke existing files")
      parser.add_argument(
          "-l",
          "--logfile",
          dest="logfile",
          action="store",
          default=None,
          help="Logfile location")
      parser.add_argument(
          "--format",
          dest="format",
          action="store",
          default="fasta",
          help="Output file format [gbk|fasta]")
      parser.add_argument(
          "--email",
          dest="email",
          required=True,
          action="store",
          default=None,
          help="Email associated with NCBI queries (required)")
      parser.add_argument(
          "--retries",
          dest="retries",
          action="store",
          default=20,
          type=int,
          help="Number of Entrez retry attempts per request.")
      parser.add_argument(
          "--batchsize",
          dest="batchsize",
          action="store",
          default=10000,
          type=int,
          help="Entrez record return batch size")
      parser.add_argument(
          "--timeout",
          dest="timeout",
          action="store",
          default=10,
          type=int,
          help="Timeout for URL connection (s)")
      return parser.parse_args()
docs: Parse command-line arguments