parameters: (self, iniconffile=sys.argv[0] + ".ini")
docstring: OVERWRITE an ini style config file that holds all of the default
          command line options.
  
          :param iniconffile: the file name of the ini file, defaults to
                              '{scriptname}.ini'.
docstring_summary: OVERWRITE an ini style config file that holds all of the default
          command line options.
docstring_tokens: OVERWRITE an ini style config file that holds all of the default command line options .
function: def writeconfig(self, iniconffile=sys.argv[0] + ".ini"):
          """
          OVERWRITE an ini style config file that holds all of the default
          command line options.
  
          :param iniconffile: the file name of the ini file, defaults to
                              '{scriptname}.ini'.
          """
          ret = []
          for cmdname, cmd in self.commands.items():
              ret.append("[%s]" % (cmdname))
              for line in self.return_cmd_doc(cmd):
                  ret.append(("# " + line).rstrip())
              for line in self.return_argnames_doc(cmd):
                  ret.append(("# " + line).rstrip())
              for key in cmd.keywords:
                  head = self.return_head(cmd, key)
                  for line in self.return_individual_keyword_doc(cmd, key, head):
                      ret.append(("# " + line).rstrip())
                  ret.append("%s = %s\n" % (key, cmd.keywords[key]))
          with open(iniconffile, 'w+') as fp:
              self.write(fp, "\n".join(ret), False)
function_tokens: def writeconfig ( self , iniconffile = sys . argv [ 0 ] + ".ini" ) : ret = [ ] for cmdname , cmd in self . commands . items ( ) : ret . append ( "[%s]" % ( cmdname ) ) for line in self . return_cmd_doc ( cmd ) : ret . append ( ( "# " + line ) . rstrip ( ) ) for line in self . return_argnames_doc ( cmd ) : ret . append ( ( "# " + line ) . rstrip ( ) ) for key in cmd . keywords : head = self . return_head ( cmd , key ) for line in self . return_individual_keyword_doc ( cmd , key , head ) : ret . append ( ( "# " + line ) . rstrip ( ) ) ret . append ( "%s = %s\n" % ( key , cmd . keywords [ key ] ) ) with open ( iniconffile , 'w+' ) as fp : self . write ( fp , "\n" . join ( ret ) , False )