Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/executables/uber.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ program.version(pkg.version)
.description('Figure out if you should order a car to pick you up and drive you to where you want to go')
.command('price', 'get price estimate')
.command('time', 'get time to pickup estimate')
.arguments('<command>')
.action((cmd) => {
Comment thread
open-source-explorer marked this conversation as resolved.
Outdated
program.outputHelp();
console.log(`\n Unknown command ${cmd}.`));
Comment thread
open-source-explorer marked this conversation as resolved.
Outdated
Comment thread
open-source-explorer marked this conversation as resolved.
Outdated
console.log();
Comment thread
open-source-explorer marked this conversation as resolved.
Outdated
})
.parse(process.argv);