#NEWLINE# def raw( self ) : #NEWLINE# #INDENT# 'Get raw value(s) wrapped by this options.\n\n        No ``require`` checks are performed.\n\n        If the options carries a single value and ``nargs == 1``, this first\n        value in the options list is returned. Otherwise the list of values\n        is returned.\n\n        :returns: the raw options value depending on ``nargs`` a single value\n                  or a list of values\n        ' #NEWLINE# size = len ( self . _value ) #NEWLINE# if ( self . nargs == 0 ) : #NEWLINE# #INDENT# if ( size == 0 ) : #NEWLINE# #INDENT# return ( False if ( self . default is None ) else bool ( self . default ) ) #NEWLINE# #UNINDENT# if ( size == 1 ) : #NEWLINE# #INDENT# return bool ( self . _value [ 0 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ bool ( v ) for v in self . _value ] #NEWLINE# #UNINDENT# #UNINDENT# vs = [ ] #NEWLINE# try : #NEWLINE# #INDENT# values = v . value #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# values = self . _value #NEWLINE# #UNINDENT# for v in values : #NEWLINE# #INDENT# if isinstance ( v , Option ) : #NEWLINE# #INDENT# other = v . raw ( ) #NEWLINE# if ( not isinstance ( other , ( list , tuple ) ) ) : #NEWLINE# #INDENT# other = [ other ] #NEWLINE# #UNINDENT# vs . extend ( other ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# vs . append ( v ) #NEWLINE# #UNINDENT# #UNINDENT# if ( ( self . nargs == 1 ) and ( len ( vs ) == 1 ) ) : #NEWLINE# #INDENT# return vs [ 0 ] #NEWLINE# #UNINDENT# return ( vs if ( vs or isinstance ( self . default , ( list , tuple ) ) ) else None )