Skip to content

Commit

Permalink
Edit logged messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorpalmatellez committed Mar 20, 2016
1 parent 6e5e96b commit 0ee2ba0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ updateNotifier({pkg}).notify();
program
.version(pkg.version)
.usage('-a <anime> -c <chapter>')
.description('CLI for get chapter link')
.description('CLI to get a chapter link')
.option('-a, --anime [anime]', 'Add name')
.option('-c, --chapter [chapter]', 'Add chapter')
.parse(process.argv);

if (program.anime && program.chapter) {
console.log(chalk.green('Searching...'));
animeDl.getLinksByNameAndChapter(program.anime, program.chapter).then((data) => {
if (data.urls.length === 0) return console.log(chalk.red('Not found a link'));
console.log(chalk.green('Run any this links in your video player'));
if (data.urls.length === 0) return console.log(chalk.red('No links found'));
console.log(chalk.green('Run any of these links in your video player'));
for (let url of data.urls) {
console.log(chalk.green(url));
}
Expand Down

0 comments on commit 0ee2ba0

Please sign in to comment.