From 3332df668bfd8d6b5cdc620583d8c6e253167713 Mon Sep 17 00:00:00 2001 From: miyuko Date: Mon, 27 Jul 2026 19:02:57 +0100 Subject: [PATCH] Improve command-line help for `-analyze-storage`. --- src/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.go b/src/main.go index 8ff6904..9a62fef 100644 --- a/src/main.go +++ b/src/main.go @@ -222,7 +222,7 @@ func usage() { fmt.Fprintf(os.Stderr, "(maint) "+ "git-pages -expire-sites [-dry-run]\n") fmt.Fprintf(os.Stderr, "(maint) "+ - "git-pages {-run-migration |-trace-garbage|-analyze-storage}\n") + "git-pages {-run-migration |-trace-garbage|-analyze-storage {text|json}}\n") flag.PrintDefaults() } @@ -275,7 +275,7 @@ func Main(versionInfo string) { runMigration := flag.String("run-migration", "", "run a store `migration` (one of: create-domain-markers)") analyzeStorage := flag.String("analyze-storage", "", - "display aggregate storage used per domain") + "display aggregate storage used per domain (argument is output mode and one of: text, json)") traceGarbage := flag.Bool("trace-garbage", false, "estimate total size of unreachable blobs") dryRun := flag.Bool("dry-run", false, @@ -819,7 +819,7 @@ func Main(versionInfo string) { encoder.Encode(analysis) case *analyzeStorage != "": - logc.Fatalf(ctx, "unsupported -analyze-storage mode") + logc.Fatalf(ctx, "unsupported -analyze-storage mode (must be text or json)") case *traceGarbage: if err = TraceGarbage(ctx); err != nil {