parameters: ()
docstring: Command line entry point.
docstring_summary: Command line entry point.
docstring_tokens: Command line entry point .
function: def main():
      """Command line entry point."""
      parser = argparse.ArgumentParser(description=__doc__)
      parser.add_argument('--dir', '-d', metavar='DIR',
                          default='ChangeLog.d',
                          help='Directory to read entries from'
                               ' (default: ChangeLog.d)')
      parser.add_argument('--input', '-i', metavar='FILE',
                          default='ChangeLog',
                          help='Existing changelog file to read from and augment'
                               ' (default: ChangeLog)')
      parser.add_argument('--keep-entries',
                          action='store_true', dest='keep_entries', default=None,
                          help='Keep the files containing entries'
                               ' (default: remove them if --output/-o is not specified)')
      parser.add_argument('--no-keep-entries',
                          action='store_false', dest='keep_entries',
                          help='Remove the files containing entries after they are merged'
                               ' (default: remove them if --output/-o is not specified)')
      parser.add_argument('--output', '-o', metavar='FILE',
                          help='Output changelog file'
                               ' (default: overwrite the input)')
      parser.add_argument('--list-files-only',
                          action='store_true',
                          help=('Only list the files that would be processed '
                                '(with some debugging information)'))
      options = parser.parse_args()
      set_defaults(options)
      if options.list_files_only:
          show_file_timestamps(options)
          return
      merge_entries(options)
function_tokens: def main ( ) : parser = argparse . ArgumentParser ( description = __doc__ ) parser . add_argument ( '--dir' , '-d' , metavar = 'DIR' , default = 'ChangeLog.d' , help = 'Directory to read entries from' ' (default: ChangeLog.d)' ) parser . add_argument ( '--input' , '-i' , metavar = 'FILE' , default = 'ChangeLog' , help = 'Existing changelog file to read from and augment' ' (default: ChangeLog)' ) parser . add_argument ( '--keep-entries' , action = 'store_true' , dest = 'keep_entries' , default = None , help = 'Keep the files containing entries' ' (default: remove them if --output/-o is not specified)' ) parser . add_argument ( '--no-keep-entries' , action = 'store_false' , dest = 'keep_entries' , help = 'Remove the files containing entries after they are merged' ' (default: remove them if --output/-o is not specified)' ) parser . add_argument ( '--output' , '-o' , metavar = 'FILE' , help = 'Output changelog file' ' (default: overwrite the input)' ) parser . add_argument ( '--list-files-only' , action = 'store_true' , help = ( 'Only list the files that would be processed ' '(with some debugging information)' ) ) options = parser . parse_args ( ) set_defaults ( options ) if options . list_files_only : show_file_timestamps ( options ) return merge_entries ( options )