code: def parse_args(pargs=None):
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description=(
              " - ".join(
                  [
                      "BTFD",
                      "http://dark-bid.com/BTFD-only-strategy-that-matters.html",
                      (
                          "https://www.reddit.com/r/algotrading/comments/5jez2b/"
                          "can_anyone_replicate_this_strategy/"
                      ),
                  ]
              )
          ),
      )
  
      parser.add_argument(
          "--offline",
          required=False,
          action="store_true",
          help="Use offline file with ticker name",
      )
  
      parser.add_argument(
          "--data",
          required=False,
          default="^GSPC",
          metavar="TICKER",
          help="Yahoo ticker to download",
      )
  
      parser.add_argument(
          "--fromdate",
          required=False,
          default="1990-01-01",
          metavar="YYYY-MM-DD[THH:MM:SS]",
          help="Starting date[time]",
      )
  
      parser.add_argument(
          "--todate",
          required=False,
          default="2016-10-01",
          metavar="YYYY-MM-DD[THH:MM:SS]",
          help="Ending date[time]",
      )
  
      parser.add_argument(
          "--cerebro",
          required=False,
          default="stdstats=False",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--broker",
          required=False,
          default="cash=100000.0, coc=True",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--valobserver",
          required=False,
          default="assetstart=100000.0",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--strat",
          required=False,
          default='approach="highlow"',
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--comminfo",
          required=False,
          default="leverage=2.0",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--plot",
          required=False,
          default="",
          nargs="?",
          const="volume=False",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      return parser.parse_args(pargs)
  
file_path: backtrader/samples/btfd/btfd.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args(pargs) and returns: parser