(self, flagfile_str)
Returns filename from a flagfile_str of form -[-]flagfile=filename.

    The cases of --flagfile foo and -flagfile foo shouldn't be hitting
    this function, as they are dealt with in the level above this
    function.
Returns filename from a flagfile_str of form -[-]flagfile=filename.
Returns filename from a flagfile_str of form - [ - ] flagfile = filename .
def ExtractFilename(self, flagfile_str):
    """Returns filename from a flagfile_str of form -[-]flagfile=filename.

    The cases of --flagfile foo and -flagfile foo shouldn't be hitting
    this function, as they are dealt with in the level above this
    function.
    """
    if flagfile_str.startswith('--flagfile='):
      return os.path.expanduser((flagfile_str[(len('--flagfile=')):]).strip())
    elif flagfile_str.startswith('-flagfile='):
      return os.path.expanduser((flagfile_str[(len('-flagfile=')):]).strip())
    else:
      raise FlagsError('Hit illegal --flagfile type: %s' % flagfile_str)
def ExtractFilename ( self , flagfile_str ) : if flagfile_str . startswith ( '--flagfile=' ) : return os . path . expanduser ( ( flagfile_str [ ( len ( '--flagfile=' ) ) : ] ) . strip ( ) ) elif flagfile_str . startswith ( '-flagfile=' ) : return os . path . expanduser ( ( flagfile_str [ ( len ( '-flagfile=' ) ) : ] ) . strip ( ) ) else : raise FlagsError ( 'Hit illegal --flagfile type: %s' % flagfile_str )