class_docstr: The TextAttack attack module:
  
  A command line parser to run an attack from user specifications.
class_docstr_tok: ["The","TextAttack","attack","module",":","A","command","line","parser","to","run","an","attack","from","user","specifications","."]
code: def register_subcommand(main_parser: ArgumentParser):
      parser = main_parser.add_parser(
          "attack",
          help="run an attack on an NLP model",
          formatter_class=ArgumentDefaultsHelpFormatter,
      )
      parser = CommandLineAttackArgs._add_parser_args(parser)
      parser.set_defaults(func=AttackCommand())
  
imports: from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser
  from textattack import Attacker, CommandLineAttackArgs, DatasetArgs, ModelArgs
  from textattack.commands import TextAttackCommand
label_desc: Use image node_id 2 for calling the AttackCommand obj's underlying member method code with example usage: obj.register_subcommand(main_parser) without return types