parameters: (self)
return_statement: return self
docstring: Fix elements that should accumulate/increment values.
docstring_summary: Fix elements that should accumulate/increment values.
docstring_tokens: Fix elements that should accumulate / increment values .
function: def fix_repeating_arguments(self):
          """Fix elements that should accumulate/increment values."""
          either = [list(child.children) for child in transform(self).children]
          for case in either:
              for e in [child for child in case if case.count(child) > 1]:
                  if type(e) is Argument or type(e) is Option and e.argcount:
                      if e.value is None:
                          e.value = []
                      elif type(e.value) is not list:
                          e.value = e.value.split()
                  if type(e) is Command or type(e) is Option and e.argcount == 0:
                      e.value = 0
          return self
function_tokens: def fix_repeating_arguments ( self ) : either = [ list ( child . children ) for child in transform ( self ) . children ] for case in either : for e in [ child for child in case if case . count ( child ) > 1 ] : if type ( e ) is Argument or type ( e ) is Option and e . argcount : if e . value is None : e . value = [ ] elif type ( e . value ) is not list : e . value = e . value . split ( ) if type ( e ) is Command or type ( e ) is Option and e . argcount == 0 : e . value = 0 return self