( args, parameter )
| 350 | del args[0] |
| 351 | |
| 352 | def __parseStringArray( args, parameter ) : |
| 353 | |
| 354 | d = IECore.StringVectorData() |
| 355 | |
| 356 | acceptFlags = False |
| 357 | if "parser" in parameter.userData() and "acceptFlags" in parameter.userData()["parser"] : |
| 358 | acceptFlags = parameter.userData()["parser"]["acceptFlags"].value |
| 359 | |
| 360 | if acceptFlags : |
| 361 | d.extend( args ) |
| 362 | del args[:] |
| 363 | else : |
| 364 | while len( args ) : |
| 365 | a = args[0] |
| 366 | if len( a ) and a[0] == "-" : |
| 367 | break |
| 368 | |
| 369 | # special case where a leading "-" is escaped |
| 370 | # to not be confused with a new parameter name |
| 371 | # ex (parameter.a is a StringVectorParameter) |
| 372 | # `-parameter.a test second \-extra -parameter.b ...` |
| 373 | # where the values are ["test", "second", "-extra"] |
| 374 | if re.match( r"^\\+-.*", a ): |
| 375 | a = a[1:] |
| 376 | |
| 377 | d.append( a ) |
| 378 | del args[0] |
| 379 | |
| 380 | parameter.setValidatedValue( d ) |
| 381 | |
| 382 | def __parseBoolArray( args, parameter ) : |
| 383 |
nothing calls this directly
no test coverage detected