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

Commit 9ff8f7e

Browse files
authored
add link to ganache.dev in help output
1 parent 613081e commit 9ff8f7e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/core/lib/command-utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ const displayGeneralHelp = options => {
324324
OS.EOL +
325325
"Usage: truffle <command> [options]"
326326
)
327-
.epilog("See more at http://trufflesuite.com/docs")
327+
.epilog("See more at https://trufflesuite.com/docs/" +
328+
OS.EOL +
329+
"For Ethereum JSON-RPC documentation see https://ganache.dev")
328330
// showHelp prints using console.error, this won't log in a
329331
// child process - "log" forces it to use console.log instead
330332
.showHelp("log");

packages/truffle/test/scenarios/commands/help.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ describe("truffle help [ @standalone ]", function () {
1616
const output = logger.contents();
1717
assert(output.includes("Usage: truffle <command> [options]"));
1818
});
19+
20+
it("includes link to https://ganache.dev", async function () {
21+
this.timeout(10000);
22+
await CommandRunner.run("help", config);
23+
const output = logger.contents();
24+
assert(output.includes("For Ethereum JSON-RPC documentation see https://ganache.dev"));
25+
});
1926
});
2027

2128
describe("when run with an argument", function () {

0 commit comments

Comments
 (0)