Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different arguments between script runner and Frosting #3007

Closed
pascalberger opened this issue Dec 20, 2020 · 2 comments
Closed

Different arguments between script runner and Frosting #3007

pascalberger opened this issue Dec 20, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@pascalberger
Copy link
Member

What You Are Seeing?

When running dotnet cake --help it shows a --description option.
When running Build.exe --help for a Frosting project it shows a --descriptions option

What is Expected?

Options should be named the same across all runners.

What version of Cake are you using?

1.0.0-RC2

Are you running on a 32 or 64 bit system?

64-Bit

What environment are you running on? Windows? Linux? Mac?

Windows

Are you running on a CI Server? If so, which one?

N/A

How Did You Get This To Happen? (Steps to Reproduce)

  1. Run dotnet cake --help with Cake .NET Tool
  2. Run Build.exe --help for a Frosting project.

Output Log

Cake .NET Tool:

c:\cake-tool>dotnet cake --help
USAGE:
    Cake.dll [SCRIPT] [OPTIONS]

EXAMPLES:
    Cake.dll
    Cake.dll build.cake --verbosity quiet
    Cake.dll build.cake --showtree

ARGUMENTS:
    [SCRIPT]    The Cake script. Defaults to build.cake

OPTIONS:
    -h, --help              Prints help information
    -v, --verbosity         Specifies the amount of information to be displayed
    -d, --debug             Launches script in debug mode
    -e, --exclusive         Executes the target task without any dependencies
        --dryrun            Performs a dry run
        --bootstrap         Download/install modules defined by #module directives, but do not run build
        --skip-bootstrap    Skips bootstrapping when running build
        --description       Shows task descriptions
        --tree              Shows the task dependency tree
        --version           Displays version information
        --info              Displays additional information about Cake

Cake Frosting:

C:\cake-frosting> .\Build.exe --help
USAGE:
    Build.dll [OPTIONS]

EXAMPLES:
    Build.dll
    Build.dll --verbosity quiet
    Build.dll --tree

OPTIONS:
    -h, --help                     Prints help information
    -t, --target <TARGET>          Target task to invoke
    -e, --exclusive                Executes the target task without any dependencies
    -w, --working <PATH>           Sets the working directory
    -v, --verbosity <VERBOSITY>    Specifies the amount of information to be displayed.
                                   (Quiet, Minimal, Normal, Verbose, Diagnostic)
        --dryrun                   Performs a dry run
        --tree                     Shows the task dependency tree
        --descriptions             Shows task descriptions
        --version                  Displays version information
        --info                     Displays additional information about Cake
@pascalberger pascalberger added this to the v1.0.0 milestone Dec 20, 2020
pascalberger added a commit to pascalberger/cake that referenced this issue Dec 21, 2020
@pascalberger pascalberger self-assigned this Dec 21, 2020
pascalberger added a commit to pascalberger/cake that referenced this issue Dec 21, 2020
pascalberger added a commit to pascalberger/cake that referenced this issue Dec 21, 2020
patriksvensson added a commit that referenced this issue Dec 22, 2020
(GH-3007) Support same CLI switches for script runners and Frosting
@devlead
Copy link
Member

devlead commented Dec 22, 2020

Fixed by #3008

@cake-build-bot
Copy link

🎉 This issue has been resolved in version v1.0.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants