Skip to content

Commit

Permalink
fix: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zluuba committed Aug 10, 2023
1 parent 0ed5968 commit fe4adb4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bin/pageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ program
.helpOption('-h, --help', 'display help for command')
.argument('<url>')
.option('-o, --output [dir]', 'output dir', process.cwd())
.action((url, options) => {
downloadPage(url, options.output)
.then((pageName) => console.log(pageName))
.catch((error) => {
console.error(`Oops. ${error.message}`);
process.exit(1);
});
});
.action((url, options) => downloadPage(url, options.output)
.then((pageName) => console.log(pageName))
.then(() => process.exit(0))
.catch((error) => {
console.error(`Oops. ${error.message}`);
process.exit(1);
}));

program.parse();

0 comments on commit fe4adb4

Please sign in to comment.