google / google/clasp

clasp run [functionName] --params doesn't work

Open
#742 6 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.8k
Forks
510
Avg merge
5h 27m
Merged PRs (30d)
1

Description

> (Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

## Expected Behavior
> clasp run setProperties --params '[{"foo":"bar"}]'
Should be execute my function setProperties with a Object {"foo": "bar"}

My function :
function setProperties(properties) {
PropertiesService.getScriptProperties.setProperties(properties, false);
}

## Actual Behavior
response : Input params not Valid JSON string. Please fix and try again.
A try other basic JSON format ... but same message.

## Specifications

- Node version (`node -v`): v10.16.3
- Version (`clasp -v`): 2.3.0
- OS (Mac/Linux/Windows): Windows

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.