« get me outta code hell

Don't default to library.json - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-06-03 15:32:19 -0300
committerFlorrie <towerofnix@gmail.com>2018-06-03 15:32:19 -0300
commit438f21307cb477361ecd62667860681ed7811bc8 (patch)
tree86300baf39acc13f1e675a1008328fc1ee3812f0
parent60131bd74b505803bba2db7bef78d9945d4087bd (diff)
Don't default to library.json
-rw-r--r--index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js
index b46edb6..df60207 100644
--- a/index.js
+++ b/index.js
@@ -64,7 +64,9 @@ async function main() {
     ]
   }
 
-  grouplike = require(process.argv[2] || './library.json')
+  if (process.argv[2]) {
+    grouplike = require(process.argv[2])
+  }
 
   grouplike = updatePlaylistFormat(grouplike)