From d0e1cc18e97cfb7f86c49f4bd611237f095aabac Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Mon, 23 Mar 2015 21:48:54 +0100 Subject: [PATCH] Tell users to use the --init command Inspired by #699. --- features/docs/getting_started.feature | 2 +- lib/cucumber/cli/main.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/docs/getting_started.feature b/features/docs/getting_started.feature index ed6d9f64f9..4b3775b006 100644 --- a/features/docs/getting_started.feature +++ b/features/docs/getting_started.feature @@ -9,7 +9,7 @@ Feature: Getting started When I run `cucumber` Then it should fail with: """ - No such file or directory - features. Please create a features directory to get started. + No such file or directory - features. Please create a features directory to get started. The --init option will help you. """ Scenario: Accidentally run Cucumber in a folder with Ruby files in it. diff --git a/lib/cucumber/cli/main.rb b/lib/cucumber/cli/main.rb index b9c95c1b05..813da4c95a 100644 --- a/lib/cucumber/cli/main.rb +++ b/lib/cucumber/cli/main.rb @@ -43,7 +43,7 @@ def execute!(existing_runtime = nil) @err.puts("Couldn't open #{e.path}") @kernel.exit(1) rescue FeatureFolderNotFoundException => e - @err.puts(e.message + ". Please create a #{e.path} directory to get started.") + @err.puts(e.message + ". Please create a #{e.path} directory to get started. The --init option will help you.") @kernel.exit(1) rescue ProfilesNotDefinedError, YmlLoadError, ProfileNotFound => e @err.puts(e.message)