Skip to content

netlify dev -d flag is not working  #359

@surma

Description

@surma

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?

$ netlify dev -c "npm run build" -d "build"`
◈ Netlify Dev ◈
Error: Expected an integer but received: build
    at Object.parse (~/.nvm/versions/node/v12.4.0/lib/node_modules/netlify-cli/node_modules/@oclif/parser/lib/flags.js:17:19)
    at Parser._flags (~/.nvm/versions/node/v12.4.0/lib/node_modules/netlify-cli/node_modules/@oclif/parser/lib/parse.js:152:49)
    at Parser.parse (~/.nvm/versions/node/v12.4.0/lib/node_modules/netlify-cli/node_modules/@oclif/parser/lib/parse.js:113:28)
    at Object.parse (~/.nvm/versions/node/v12.4.0/lib/node_modules/netlify-cli/node_modules/@oclif/parser/lib/index.js:25:27)
    at DevCommand.parse (~/.nvm/versions/node/v12.4.0/lib/node_modules/netlify-cli/node_modules/@oclif/command/lib/command.js:83:41)
    at DevCommand.run (~/.nvm/versions/node/v12.4.0/lib/node_modules/netlify-cli/node_modules/netlify-dev-plugin/src/commands/dev/index.js:172:26)
    at DevCommand._run (~/.nvm/versions/node/v12.4.0/lib/node_modules/netlify-cli/node_modules/@oclif/command/lib/command.js:44:31)

- If the current behavior is a bug, please provide the steps to reproduce.
See above

- What is the expected behavior?
The -d flag should allow me to specify the directory my output is in. Surely that ought to be a string, not an integer :D

- Please mention your node.js, and operating system version.
netlify-cli/2.11.27 darwin-x64 node-v12.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions