@@ -53,17 +53,21 @@ def app_help(env, app_cfg, options, command, &thor_help)
5353 return if !command . nil?
5454
5555 # If project configuration is available, also display Rake tasks
56- @path_validator . standardize_paths ( options [ :project ] , *options [ :mixin ] , )
57- return if !@projectinator . config_available? ( filepath :options [ :project ] , env :env )
58-
59- list_rake_tasks (
60- env :env ,
61- app_cfg : app_cfg ,
62- filepath : options [ :project ] ,
63- mixins : options [ :mixin ] ,
64- # Silent Ceedling loading unless debug verbosity
65- silent : !( verbosity == Verbosity ::DEBUG )
66- )
56+ @path_validator . standardize_paths ( options [ :project ] , *options [ :mixin ] )
57+ if @projectinator . config_available? ( filepath :options [ :project ] , env :env )
58+ list_rake_tasks (
59+ env :env ,
60+ app_cfg : app_cfg ,
61+ filepath : options [ :project ] ,
62+ mixins : options [ :mixin ] ,
63+ # Silent Ceedling loading unless debug verbosity
64+ silent : !( verbosity == Verbosity ::DEBUG )
65+ )
66+ else
67+ # If no project configuration is available then note why we aren't displaying more
68+ msg = "Run help commands in a directory with a project file to list additional options"
69+ @loginator . log ( msg , Verbosity ::NORMAL , LogLabels ::NOTICE )
70+ end
6771
6872 version = @helper . manufacture_app_version ( app_cfg )
6973
@@ -79,18 +83,17 @@ def rake_help(env:, app_cfg:)
7983 end
8084
8185
82- def new_project ( env , app_cfg , ceedling_tag , options , name , dest )
86+ def new_project ( env , app_cfg , ceedling_tag , options , dest )
8387 @helper . set_verbosity ( options [ :verbosity ] )
8488
8589 @path_validator . standardize_paths ( dest )
8690
87- # If destination is nil, reassign it to name
88- # Otherwise, join the destination and name into a new path
89- dest = dest . nil? ? ( './' + name ) : File . join ( dest , name )
91+ # If destination is nil, assume it's the working directory
92+ dest ||= '.'
9093
9194 # Check for existing project (unless --force)
9295 if @helper . project_exists? ( dest , :| , DEFAULT_PROJECT_FILENAME , 'src' , 'test' )
93- msg = "It appears a project already exists at #{ dest } /. Use --force to destroy it and create a new project."
96+ msg = "It appears a project already exists at \" #{ dest } /\" ! Use --force to destroy it and create a new project."
9497 raise msg
9598 end unless options [ :force ]
9699
@@ -128,7 +131,7 @@ def new_project(env, app_cfg, ceedling_tag, options, name, dest)
128131 end
129132
130133 @loginator . log ( ) # Blank line
131- @loginator . log ( "New project ' #{ name } ' created at #{ dest } /\n " , Verbosity ::NORMAL , LogLabels ::TITLE )
134+ @loginator . log ( "New project created at #{ dest } /\n " , Verbosity ::NORMAL , LogLabels ::TITLE )
132135 end
133136
134137
@@ -228,8 +231,10 @@ def build(env:, app_cfg:, options:{}, tasks:)
228231 CException => #{ _version . cexception_tag }
229232 VERSION
230233
231- @loginator . log ( '' , Verbosity ::OBNOXIOUS )
232- @loginator . log ( version , Verbosity ::OBNOXIOUS , LogLabels ::CONSTRUCT )
234+ @loginator . lazy ( Verbosity ::OBNOXIOUS )
235+ @loginator . lazy ( Verbosity ::OBNOXIOUS , LogLabels ::CONSTRUCT ) do
236+ version
237+ end
233238
234239 @helper . load_ceedling (
235240 config : config ,
0 commit comments