blob: 03f762e6673081ecb8f539195ed051199c20b48a [file] [log] [blame]
#!/usr/bin/env python3
# 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__':