From 2d7fae78ccb6167c10d49d276d12a919b5446e35 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Mon, 18 Nov 2019 00:51:58 +0100 Subject: [PATCH] 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 -). --- core/commands/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/commands/repo.go b/core/commands/repo.go index cef056c1961..d3de85fdd66 100644 --- a/core/commands/repo.go +++ b/core/commands/repo.go @@ -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)