box / box/boxcli

Metadata Template Update: Unable to add multiple option values to enum

Open
#255 4 comments 0 reactions 2 assignees Claimed by @sujaygarlanka View on GitHub
bug dontstale
Dominant language
JavaScript
Stars
284
Forks
67
Avg merge
6h 45m
Merged PRs (30d)
4

Description

- [ X] I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
- [ X] I have checked that the [API documentation][api-docs] doesn't solve my issue.
- [ X] I have searched the [Box Developer Forums][dev-forums] and my issue isn't already reported (or if it has been reported, I have attached a link to it, for reference).
- [ X] I have searched [Issues in this repo][github-repo] and my issue isn't already reported.

### Description of the Issue
Box CLI Command for adding enum options to the a metadata template doesn't allow multiple options params. In the documentation help it states.
```
$ box metadata-templates:update TEMPLATEKEY
--add-enum-option=add-enum-option Add an enum option to the specified field; must be followed by one or more --option flags
```

If I however submit this command:
`box metadata-templates:update --add-enum-option= --option= --option= --option=`
then only Value 3 will be added and Value 1, Value 2 will be ignored.

### Steps to Reproduce
Execute command above on a single dropdown field

### Expected Behavior
All the options should be added as per the help message.

### Error Message, Including Stack Trace
NA

### Screenshots

### Versions Used
Box CLI: 2.9
Operating System: macOS Big Sure 11.5.2

[sdk-docs]: ./doc
[api-docs]: https://developer.box.com/docs
[dev-forums]: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
[github-repo]: https://github.com/box/box-java-sdk/search?type=Issues

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.