« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xindex.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js
index 23d0449..102e75a 100755
--- a/index.js
+++ b/index.js
@@ -137,7 +137,9 @@ async function main() {
 
   const loadPlaylists = async () => {
     for (let i = 2; i < process.argv.length; i++) {
-      await appElement.handlePlaylistSource(process.argv[i], true)
+      if (!process.argv[i].startsWith('--')) {
+        await appElement.handlePlaylistSource(process.argv[i], true)
+      }
     }
   }