code: def run_command_line(args=None):
      
      # Get arguments from ``sys.argv`` if necessary.
      # ``sys.argv`` has the name of the script as its first element. We remove
      # this element because it will break ``parser.parse_args()`` later. In fact,
      # ``parser.parse_args()``, if provided with no arguments, will also use
      # ``sys.argv`` after removing the first element.
      if args is None:
          args = sys.argv[1:]
  
      import argparse
      # Read command line arguments
      parser = argparse.ArgumentParser(
          description="process flow cytometry files with FlowCal's Excel UI.")
      parser.add_argument(
          "-i",
          "--inputpath",
          type=str,
          nargs='?',
          help="input Excel file name. If not specified, show open file window")
      parser.add_argument(
          "-o",
          "--outputpath",
          type=str,
          nargs='?',
          help="output Excel file name. If not specified, use [INPUTPATH]_output")
      parser.add_argument(
          "-v",
          "--verbose",
          action="store_true",
          help="print information about individual processing steps")
      parser.add_argument(
          "-p",
          "--plot",
          action="store_true",
          help="generate and save density plots/histograms of beads and samples")
      parser.add_argument(
          "-H",
          "--histogram-sheet",
          action="store_true",
          help="generate sheet in output Excel file specifying histogram bins")
      args = parser.parse_args(args=args)
  
      # Run Excel UI
      run(input_path=args.inputpath,
          output_path=args.outputpath,
          verbose=args.verbose,
          plot=args.plot,
          hist_sheet=args.histogram_sheet)
docs: Entry point for the FlowCal and flowcal console scripts.
  
      Parameters
      ----------
      args: list of strings, optional
          Command line arguments. If None or not specified, get arguments
          from ``sys.argv``.
  
      See Also
      ----------
      FlowCal.excel_ui.run()
  
      http://amir.rachum.com/blog/2017/07/28/python-entry-points/