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

Commit 8c63f8f

Browse files
vmxdaviddias
authored andcommitted
fix(cli): show help for subcommands
If subcommands are called, e.g. `jsipfs dag` there was no output at all. Now the help message (which you also get with `--help` is displayed.
1 parent d798d59 commit 8c63f8f

File tree

10 files changed

+10
-11
lines changed

10 files changed

+10
-11
lines changed

src/cli/commands/bitswap.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'bitswap',
4+
command: 'bitswap <command>',
55

66
description: 'Interact with the bitswap agent.',
77

@@ -10,6 +10,5 @@ module.exports = {
1010
},
1111

1212
handler (argv) {
13-
console.log('Type `jsipfs bitswap --help` for more information about this command')
1413
}
1514
}

src/cli/commands/block.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'block',
4+
command: 'block <command>',
55

66
description: 'Manipulate raw IPFS blocks.',
77

src/cli/commands/bootstrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'bootstrap',
4+
command: 'bootstrap <command>',
55

66
description: 'Show or edit the list of bootstrap peers.',
77

src/cli/commands/dag.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'dag',
4+
command: 'dag <command>',
55

66
description: 'Interact with ipld dag objects.',
77

src/cli/commands/file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'file',
4+
command: 'file <command>',
55

66
description: 'Interact with IPFS objects representing Unix filesystems.',
77

src/cli/commands/files.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'files',
4+
command: 'files <command>',
55

66
description: 'Operations over files (add, cat, get, ls, etc)',
77

src/cli/commands/object.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'object',
4+
command: 'object <command>',
55

66
description: 'Interact with ipfs objects.',
77

src/cli/commands/pubsub.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'pubsub',
4+
command: 'pubsub <command>',
55

66
description: 'pubsub commands',
77

src/cli/commands/repo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'repo',
4+
command: 'repo <command>',
55

66
description: 'Manipulate the IPFS repo.',
77

src/cli/commands/swarm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = {
4-
command: 'swarm',
4+
command: 'swarm <command>',
55

66
description: 'Swarm inspection tool.',
77

0 commit comments

Comments
 (0)