From a687a1a3ebd856115005031d63d15257dac0ece8 Mon Sep 17 00:00:00 2001 From: Paul Lambert Date: Sun, 5 Jan 2014 09:13:05 +1300 Subject: [PATCH 1/2] feat: basic help message Added basic help message, reflecting the currently implemented functionality. --- bin/ngbp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/ngbp b/bin/ngbp index 5c6969f..dd08bb5 100755 --- a/bin/ngbp +++ b/bin/ngbp @@ -47,7 +47,14 @@ function version () { } function help () { - console.log( "ngbp-cli help not yet implemented." ); + console.log( "ngbp-cli version " + pkg.version + "\n" ); + console.log( "Usage".underline ); + console.log( " ngbp [options] [task]\n" ); + console.log( "Options".underline ); + console.log( " --help, -h Display this help text." ); + console.log( " --version, -V Print the ngbp version.\n" ); + console.log( "Available tasks".underline ); + console.log( " init Initialize this project with an ngbp instance" ); process.exit(); } From 0f414aa4731acb1183cb305e4279d7b1dc69ab04 Mon Sep 17 00:00:00 2001 From: Paul Lambert Date: Sun, 5 Jan 2014 11:29:24 +1300 Subject: [PATCH 2/2] fix:no full stop on end of help lines Correct grammar in help text --- bin/ngbp | 4 ++-- node_modules | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 node_modules diff --git a/bin/ngbp b/bin/ngbp index dd08bb5..88713bd 100755 --- a/bin/ngbp +++ b/bin/ngbp @@ -51,8 +51,8 @@ function help () { console.log( "Usage".underline ); console.log( " ngbp [options] [task]\n" ); console.log( "Options".underline ); - console.log( " --help, -h Display this help text." ); - console.log( " --version, -V Print the ngbp version.\n" ); + console.log( " --help, -h Display this help text" ); + console.log( " --version, -V Print the ngbp version\n" ); console.log( "Available tasks".underline ); console.log( " init Initialize this project with an ngbp instance" ); process.exit(); diff --git a/node_modules b/node_modules new file mode 120000 index 0000000..3faa916 --- /dev/null +++ b/node_modules @@ -0,0 +1 @@ +/Users/paul/apps/ngbp-new-test/node_modules/ngbp-cli.install/node_modules \ No newline at end of file