diff --git a/main.js b/main.js index e02dfa7..1ca6f8c 100644 --- a/main.js +++ b/main.js @@ -266,8 +266,11 @@ const program .command('kiwi') .description('Launch Kiwi browser') - .argument('', 'Website URL') - .action(url => adb(`am start -a android.intent.action.VIEW -d ${url} -t text/plain com.kiwibrowser.browser`)); + .argument('[url]', 'Website URL') + .action(url => adb(url + ? `am start -a android.intent.action.VIEW -d ${url} -t text/plain com.kiwibrowser.browser` + : 'monkey -p com.kiwibrowser.browser 1' + )); program .command('notifications') .description('Show notification history')