]> git.proxmox.com Git - pve-eslint.git/commit
exit sanely if no args are given
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Apr 2020 16:27:48 +0000 (18:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Apr 2020 16:27:51 +0000 (18:27 +0200)
commitbe566999a03fccd470f1df74f9b4e7c8d5472211
treed2f200425f621be0b8a96c411bf566d9123b66a3
parent30ca1a0a49c0fc43dd1f524f3e0cc89b60144848
exit sanely if no args are given

I mean some seem to like python style throwing up in ones face on
every occasion.. I don't though..

nodes drops the original argv0 in favor of process.execPath and the
path to the JavaScript file being executed, so we need more than two
args to be OK.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/app.js