
import sys
import argparse
from hxl.parser import HXLReader
from hxl.schema import loadHXLSchema

def hxlvalidate(input, output=sys.stdout, schema_input=None):
    parser = HXLReader(input)
    schema = loadHXLSchema(schema_input)
    schema.validate(parser)

# end


import sys
from hxl.parser import HXLReader
from hxl.schema import loadHXLSchema

def hxlvalidate(input=sys.stdin, output=sys.stderr, schema_input=None):
    parser = HXLReader(input)
    schema = loadHXLSchema(schema_input)
    return schema.validate(parser)

# end

Return result of validation from the command script.
Return result of validation from the command script.

  
  import sys
- import argparse
  from hxl.parser import HXLReader
  from hxl.schema import loadHXLSchema
  
- def hxlvalidate(input, output=sys.stdout, schema_input=None):
+ def hxlvalidate(input=sys.stdin, output=sys.stderr, schema_input=None):
      parser = HXLReader(input)
      schema = loadHXLSchema(schema_input)
-     schema.validate(parser)
+     return schema.validate(parser)
  
  # end
  
Return result of validation from the command script.
## Code Before:

import sys
import argparse
from hxl.parser import HXLReader
from hxl.schema import loadHXLSchema

def hxlvalidate(input, output=sys.stdout, schema_input=None):
    parser = HXLReader(input)
    schema = loadHXLSchema(schema_input)
    schema.validate(parser)

# end

## Instruction:
Return result of validation from the command script.
## Code After:

import sys
from hxl.parser import HXLReader
from hxl.schema import loadHXLSchema

def hxlvalidate(input=sys.stdin, output=sys.stderr, schema_input=None):
    parser = HXLReader(input)
    schema = loadHXLSchema(schema_input)
    return schema.validate(parser)

# end
