From fbfbe222714882be42b0d515f4b744442e413b70 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 4 Mar 2012 21:30:00 +0100 Subject: [PATCH] Warn if no version is specified with upgrade cake task. --- Cakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cakefile b/Cakefile index c2507ce16..8e31a681b 100644 --- a/Cakefile +++ b/Cakefile @@ -92,7 +92,9 @@ option '-v', '--version [version]', 'Upgrade version.' task 'upgrade', (options) -> {version} = options - return unless version + unless version + console.warn 'Version argument not specified. Exiting.' + return regexp = RegExp VERSION, 'g' for file in [CAKEFILE, INFILE, OUTFILE, LATEST] data = fs.readFileSync file, 'utf8'