Skip to content

Error when "compile" object without commands, if they are configured #30

@sergkoudi

Description

@sergkoudi

If config is:

const app = parameters(
{  options:
  { "config": {} },
  commands:
  { "start": {} } }
)

This programm:

app.compile( { config: "app.yaml" } )

Leads to the error:

TypeError: Cannot read property 'shift' of undefined at compile (../node-parameters/lib/plugins/args.js:290:93)

This works:

app.compile( {
    command: ["start"],
    config: "app.yaml"
  } )

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