blob: 177d2d3de4f1088a87079a07c23e1c13c8cda3a9 [file] [log] [blame]
#!/usr/bin/env python
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Run node-jshint."""
import argparse
import os
import subprocess
import sys
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
NODE = os.path.join(THIS_DIR, '')
JSHINT = os.path.join(THIS_DIR, 'node_modules', '.bin', 'jshint')
def main():
parser = argparse.ArgumentParser()
parser.add_argument('cmd', nargs='*')
args = parser.parse_args()
cmd = [sys.executable, NODE, '--', JSHINT]
return + args.cmd)
if __name__ == '__main__':