This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,30 @@ const IPFS = require('../../core')
5
5
const utils = require ( '../utils' )
6
6
const print = utils . print
7
7
8
+ const ipfsPathHelp = 'ipfs uses a repository in the local file system. By default, the repo is ' +
9
+ 'located at ~/.ipfs.\nTo change the repo location, set the $IPFS_PATH environment variable:\n\n' +
10
+ '\texport IPFS_PATH=/path/to/ipfsrepo\n'
11
+
8
12
module . exports = {
9
13
command : 'init' ,
10
14
11
15
describe : 'Initialize a local IPFS node' ,
12
16
13
- builder : {
14
- bits : {
15
- type : 'number' ,
16
- alias : 'b' ,
17
- default : '2048' ,
18
- describe : 'Number of bits to use in the generated RSA private key (defaults to 2048)'
19
- } ,
20
- emptyRepo : {
21
- alias : 'e' ,
22
- type : 'boolean' ,
23
- describe : "Don't add and pin help files to the local storage"
24
- }
17
+ builder ( yargs ) {
18
+ print ( ipfsPathHelp )
19
+
20
+ return yargs
21
+ . option ( 'bits' , {
22
+ type : 'number' ,
23
+ alias : 'b' ,
24
+ default : '2048' ,
25
+ describe : 'Number of bits to use in the generated RSA private key (defaults to 2048)'
26
+ } )
27
+ . option ( 'emptyRepo' , {
28
+ alias : 'e' ,
29
+ type : 'boolean' ,
30
+ describe : "Don't add and pin help files to the local storage"
31
+ } )
25
32
} ,
26
33
27
34
handler ( argv ) {
You can’t perform that action at this time.
0 commit comments