code: def get_command_line_args():
      
      parser = argparse.ArgumentParser(description='Send logs to Django Sentry.')
  
      parser.add_argument('--sentryconfig', '-c', default=None,
                          help='A configuration file (.ini, .yaml) of some '
                               'Sentry integration to extract the Sentry DSN from')
      parser.add_argument('--sentrydsn', '-s', default="",
                          help='The Sentry DSN string (overrides -c)')
      parser.add_argument('--daemonize', '-d', default=False,
                          action='store_const', const=True,
                          help='Run this script in background')
      parser.add_argument('--follow', '-f', default="all",
                          help='Which logs to follow, default ALL')
      parser.add_argument('--nginxerrorpath', '-n', default=None,
                          help='Nginx error log path')
  
      return parser.parse_args()
docs: CLI command line arguments handling