old_contents: #!/usr/bin/env python
  
  import argparse
  
  from mc_solr.solr import run_solr_shard
  
  if __name__ == "__main__":
      run_solr_shard(shard_num=1, shard_count=2)
  
new_contents: #!/usr/bin/env python
  
  import argparse
  
  from mc_solr.constants import *
  from mc_solr.solr import run_solr_shard
  
  if __name__ == "__main__":
      parser = argparse.ArgumentParser(description="Install Solr and start a shard.",
                                       formatter_class=argparse.ArgumentDefaultsHelpFormatter)
      parser.add_argument("-n", "--shard_num", type=int, required=True, help="Shard number.")
      parser.add_argument("-c", "--shard_count", type=int, required=True, help="Number of shards.")
      parser.add_argument("-zh", "--zookeeper_host", type=str, required=False, default=MC_SOLR_ZOOKEEPER_HOST,
                          help="ZooKeeper host to connect to.")
      parser.add_argument("-zp", "--zookeeper_port", type=int, required=False, default=MC_SOLR_ZOOKEEPER_PORT,
                          help="ZooKeeper port to connect to.")
      parser.add_argument("-jmx", "--jvm_heap_size_limit", type=str, required=False, default=MC_SOLR_JVM_HEAP_SIZE_LIMIT,
                          help="Java heap size (-Xmx).")
  
      args = parser.parse_args()
  
      run_solr_shard(shard_num=args.shard_num,
                     shard_count=args.shard_count,
                     zookeeper_host=args.zookeeper_host,
                     zookeeper_port=args.zookeeper_port,
                     jvm_heap_size_limit=args.jvm_heap_size_limit)
  
subject: Support arguments in run_solr_shard.py script