Adding alias for `ipfs repo stat`.
This add -H (-h is obviously taken by the help) for human and -s for size only (I though of -so but multiple letters is automaticaly -- not -).
Jorropo committed
Nov 18, 2019 at 00:51 UTC
2d7fae78ccb6167c10d49d276d12a919b5446e35
1 file changed
+2
-2
core/commands/repo.go
+2
-2
@@ -148,8 +148,8 @@ Version string The repo version.
148
`,
149
},
150
Options: []cmds.Option{
151
- cmds.BoolOption(repoSizeOnlyOptionName, "Only report RepoSize and StorageMax."),
152
- cmds.BoolOption(repoHumanOptionName, "Print sizes in human readable format (e.g., 1K 234M 2G)"),
151
+ cmds.BoolOption(repoSizeOnlyOptionName, "s", "Only report RepoSize and StorageMax."),
152
+ cmds.BoolOption(repoHumanOptionName, "H", "Print sizes in human readable format (e.g., 1K 234M 2G)"),
153
},
154
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
155
n, err := cmdenv.GetNode(env)