« get me outta code hell

Async option handlers should work under aliases - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorliam4 <towerofnix@gmail.com>2017-06-03 08:18:32 -0300
committerliam4 <towerofnix@gmail.com>2017-06-03 08:18:36 -0300
commit308fa9eaaad7b48f4362bdc301a81699943b2ede (patch)
treefbda66f9465577bed73582f350c3605edce9fd20 /src
parentc41b0bbb11b06544d696656b9ef441604b6b28c1 (diff)
Async option handlers should work under aliases
Diffstat (limited to 'src')
-rw-r--r--src/process-argv.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process-argv.js b/src/process-argv.js
index 201f927..a459dfe 100644
--- a/src/process-argv.js
+++ b/src/process-argv.js
@@ -30,7 +30,7 @@ module.exports = async function processArgv(argv, handlers) {
         alias: function(optionToRun) {
           // Runs the given option's handler.
 
-          handleOpt(optionToRun)
+          return handleOpt(optionToRun)
         }
       })
     } else {