original_docstring: Adds subparser command and flags for 'keygen' command.
  
      Args:
          subparsers (:obj:`ArguementParser`): The subcommand parsers.
          parent_parser (:obj:`ArguementParser`): The parent of the subcomman
              parsers.
      
docstring: Adds subparser command and flags for 'keygen' command.
docstring_tokens: Adds subparser command and flags for ' keygen ' command .
code: def add_keygen_parser(subparsers, parent_parser):
      """Adds subparser command and flags for 'keygen' command.
  
      Args:
          subparsers (:obj:`ArguementParser`): The subcommand parsers.
          parent_parser (:obj:`ArguementParser`): The parent of the subcomman
              parsers.
      """
      description = 'Generates keys for the validator to use when signing blocks'
  
      epilog = (
          'The private and public key pair is stored in '
          '/etc/sawtooth/keys/<key-name>.priv and '
          '/etc/sawtooth/keys/<key-name>.pub.'
      )
  
      parser = subparsers.add_parser(
          'keygen',
          help=description,
          description=description + '.',
          epilog=epilog,
          parents=[parent_parser])
  
      parser.add_argument(
          'key_name',
          help='name of the key to create',
          nargs='?')
  
      parser.add_argument(
          '--force',
          help="overwrite files if they exist",
          action='store_true')
  
      parser.add_argument(
          '-q',
          '--quiet',
          help="do not display output",
          action='store_true')
code_tokens: def add_keygen_parser ( subparsers , parent_parser ) : description = 'Generates keys for the validator to use when signing blocks' epilog = ( 'The private and public key pair is stored in ' '/etc/sawtooth/keys/<key-name>.priv and ' '/etc/sawtooth/keys/<key-name>.pub.' ) parser = subparsers . add_parser ( 'keygen' , help = description , description = description + '.' , epilog = epilog , parents = [ parent_parser ] ) parser . add_argument ( 'key_name' , help = 'name of the key to create' , nargs = '?' ) parser . add_argument ( '--force' , help = "overwrite files if they exist" , action = 'store_true' ) parser . add_argument ( '-q' , '--quiet' , help = "do not display output" , action = 'store_true' )
short_docstring: Adds subparser command and flags for 'keygen' command.
short_docstring_tokens: Adds subparser command and flags for ' keygen ' command .
comment: """Adds subparser command and flags for 'keygen' command.
  
      Args:
          subparsers (:obj:`ArguementParser`): The subcommand parsers.
          parent_parser (:obj:`ArguementParser`): The parent of the subcomman
              parsers.
      """