Revert "[M120 Migration]Fix for crash during chrome exit"
[platform/framework/web/chromium-efl.git] / tools / clang-format-js
index bfbcfeb..10a59bf 100755 (executable)
@@ -3,7 +3,7 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
-if [[ -z "${@}" ]]; then
+if [[ -z "$@" || "$1" == "-h" || "$1" == "--help" ]]; then
   echo >&2 "Usage: `basename $0` <paths_to_clang_format...>"
   exit 1
 fi