- $path = $this->getArg( 0 );
- try {
- $validator->validate( $path );
- $this->output( "$path validates against the schema!\n" );
- } catch ( ExtensionJsonValidationError $e ) {
- $this->fatalError( $e->getMessage() );
+ $paths = glob( $this->getArg( 0 ) );
+ foreach ( $paths as $path ) {
+ try {
+ $validator->validate( $path );
+ $this->output( "$path validates against the schema!\n" );
+ } catch ( ExtensionJsonValidationError $e ) {
+ $this->fatalError( $e->getMessage() );
+ }