Skip to content

Commit 393b213

Browse files
authored
Merge pull request commercialhaskell#6528 from commercialhaskell/fix3644
Fix commercialhaskell#3644 Improve in-app help for stack init, stack new
2 parents a375117 + 65ff9fa commit 393b213

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: src/Stack/CLI.hs

+6-4
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ commandLineHandler currentDir progName isInterpreter =
373373
init = addCommand'
374374
"init"
375375
"Create Stack project configuration from Cabal or Hpack package \
376-
\specifications."
376+
\specifications. If a snapshot is specified at the command line, the \
377+
\command will try to use it."
377378
initCmd
378379
initOptsParser
379380

@@ -399,9 +400,10 @@ commandLineHandler currentDir progName isInterpreter =
399400
new = addCommand'
400401
"new"
401402
"Create a new project from a template. Run 'stack templates' to see \
402-
\available templates. Will also initialise if there is no stack.yaml \
403-
\file. Note: you can also specify a local file or a remote URL as a \
404-
\template; or force an initialisation."
403+
\available templates. A local file or a remote URL can be specified as a \
404+
\template. Will initialise if there is no stack.yaml file. Initialisation \
405+
\may be forced. If a snapshot is specified at the command line, \
406+
\initialisation will try to use it."
405407
newCmd
406408
newOptsParser
407409

0 commit comments

Comments
 (0)