box / boxcli

A command line interface for interacting with the Box API.
https://developer.box.com
Apache License 2.0
229 stars 59 forks source link

Box Search: Limit param not supported #322

Closed jacquesvandermerwe closed 2 years ago

jacquesvandermerwe commented 2 years ago

Description of the Issue

Box Search API supports a 'limit' parameter in the raw API See here https://box.dev/reference/get-search/

The Box CLI command for box search doesn't support that param and defaults to 100.

box search "Lorem" --scope=enterprise_content --csv --fields=id,name,owned_by --limit 200
Unexpected arguments: --limit, 200
See more help with --help

Steps to Reproduce

Run command above

Expected Behavior

Limit parameter available and honoured.

Error Message, Including Stack Trace

See above

Screenshots

Versions Used

Box CLI: 3.0.0 Operating System: mac Monterey

lukaszsocha2 commented 2 years ago

Hi @jacquesvandermerwe , thanks for reporting this issue. I've already created pr, which will fix this. Regards