diff --git a/README.md b/README.md index 835556a3..ab9bf060 100644 --- a/README.md +++ b/README.md @@ -4145,7 +4145,7 @@ DESCRIPTION Commands for interacting with Cursors in Ably Spaces EXAMPLES - $ ably spaces cursors set my-space --position '{"x": 100, "y": 200}' --data '{"color": "red"}' + $ ably spaces cursors set my-space --x 100 --y 200 --data '{"color": "red"}' $ ably spaces cursors subscribe my-space diff --git a/src/commands/spaces/cursors.ts b/src/commands/spaces/cursors.ts index 42cb508e..f839d446 100644 --- a/src/commands/spaces/cursors.ts +++ b/src/commands/spaces/cursors.ts @@ -5,7 +5,7 @@ export default class SpacesCursors extends Command { "Commands for interacting with Cursors in Ably Spaces"; static override examples: Command.Example[] = [ - `$ ably spaces cursors set my-space --position '{"x": 100, "y": 200}' --data '{"color": "red"}'`, + `$ ably spaces cursors set my-space --x 100 --y 200 --data '{"color": "red"}'`, `$ ably spaces cursors subscribe my-space`, `$ ably spaces cursors get-all my-space`, ]; diff --git a/src/commands/spaces/cursors/index.ts b/src/commands/spaces/cursors/index.ts index 625e974c..062daccc 100644 --- a/src/commands/spaces/cursors/index.ts +++ b/src/commands/spaces/cursors/index.ts @@ -4,7 +4,7 @@ export default class SpacesCursorsIndex extends Command { static override description = "Commands for cursor management in Ably Spaces"; static override examples = [ - "$ ably spaces cursors set my-space", + "$ ably spaces cursors set my-space --x 100 --y 200", "$ ably spaces cursors subscribe my-space", "$ ably spaces cursors get-all my-space", ];