Array mode for --accumulate-attribute
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.1k
- Forks
- 430
- PR merge metrics
- No merged PRs in 30d
Description
Could --accumulate-attribute please support an array mode? Instead of just appending values to a comma separated string: `foo,bar`, an actual array would work much better with Mapbox-GL's `in` operator: `["foo", "bar"]`
Up for discussion whether every attribute would be wrapped in an array even when a singleton, or only accumulations.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the --accumulate-attribute entry point and the code that currently appends values into comma-separated strings. Review how command-line options are parsed and how accumulated attributes are serialized, then determine and test whether singleton values and repeated values should both become arrays. Done means the option emits Mapbox-GL-compatible arrays with documented behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100