Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit cffdda0

Browse files
committed
fix for top-level help: screenshot wasn't a clickable
Fixes #841
1 parent 97136cb commit cffdda0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/plugins/ui/commands/screenshot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
*/
2121
const usage = {
2222
strict: 'screenshot',
23+
command: 'screenshot',
2324
title: 'Capture screenshot',
24-
header: 'Capture a screenshot to the clipboard, optionally specifying which region of the window to capture.',
25+
header: 'Capture a screenshot, optionally specifying which region of the window to capture.',
2526
example: 'screenshot [which]',
2627
detailedExample: [
2728
{ command: 'screenshot sidecar', docs: 'capture the sidecar contents' },

tests/tests/passes/02/screenshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Take screenshot', function() {
4949
.then(cli.expectError(0, 'You requested to screenshot the last REPL output, but this is the first command')))
5050

5151
it('should fail to take screenshot with bogus arg', () => cli.do(`screenshot goober`, this.app)
52-
.then(cli.expectError(500, 'Capture a screenshot to the clipboard'))) // part of the usage message
52+
.then(cli.expectError(500, 'Capture a screenshot'))) // part of the usage message
5353

5454
it('should take screenshot with no arguments', () => takeScreenshot(this))
5555
it('should take screenshot full', () => takeScreenshot(this, 'full'))

0 commit comments

Comments
 (0)