Merge pull request #6769 from Jorropo/feat/repo-stat-H

Adding alias for `ipfs repo stat`.
This commit is contained in:
Steven Allen 2019-11-18 14:18:00 -06:00 committed by GitHub
commit 7c01c2cff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,8 +148,8 @@ Version string The repo version.
`,
},
Options: []cmds.Option{
cmds.BoolOption(repoSizeOnlyOptionName, "Only report RepoSize and StorageMax."),
cmds.BoolOption(repoHumanOptionName, "Print sizes in human readable format (e.g., 1K 234M 2G)"),
cmds.BoolOption(repoSizeOnlyOptionName, "s", "Only report RepoSize and StorageMax."),
cmds.BoolOption(repoHumanOptionName, "H", "Print sizes in human readable format (e.g., 1K 234M 2G)"),
},
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
n, err := cmdenv.GetNode(env)