Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion bin/nc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const ora = require("ora");
const spinner = ora();

program
.version("0.0.1", "-v, --version")
.option("-v, --version", "Check the version of NodeCloud CLI")
.option("-a, --about", "View about section of NodeCloud CLI")
.option("-i, --init", "Initialize provider")
.option("-t, --type <type>", "Type")
Expand Down
7 changes: 7 additions & 0 deletions lib/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ const options = {
};

function Services(program, spinner) {
if (!program.version) {
// no idea why this is the opposite, unlike other options
console.log(
"0.0.1\n" +
"GitHub repository: https://github.com/cloudlibz/nodecloud-cli"
);
}
if (program.about) {
logofied("NodeCloud CLI");
}
Expand Down