Details
Description
Calling the create-script command with command support enabled and a script name with at least one hyphen results in the wrong files being created
griffon create-script create-page --with-command-support Welcome to Griffon 0.9.5 - http://griffon.codehaus.org/ Licensed under Apache Standard License 2.0 Griffon home is set to: /usr/local/griffon Base Directory: /private/tmp/bar Running script /usr/local/griffon/scripts/CreateScript.groovy Resolving dependencies... Dependencies resolved in 551ms. Environment set to development Resolving plugin dependencies ... Plugin dependencies resolved in 2421 ms. Created Script for CreatePage [mkdir] Created dir: /private/tmp/bar/test/cli Created ScriptTests for CreatePage [mkdir] Created dir: /private/tmp/bar/src/cli/org/codehaus/griffon/cli/shell/command Created ShellCommand for CreatePage [mkdir] Created dir: /private/tmp/bar/src/cli/org/codehaus/griffon/cli/shell/help Created ShellHelp for CreatePage [move] Moving 1 file to /private/tmp/bar/src/cli/org/codehaus/griffon/cli/shell/help [touch] Creating /private/tmp/bar/src/cli/org/codehaus/griffon/cli/shell/command/createpage.txt
The name of the command inside the help files is also wrong.
Fixed with https://github.com/griffon/griffon/commit/31d539c72796f212af0f29507f1312cf2743db89