aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-03-27 21:21:26 +0200
committerStefan Boberg <[email protected]>2023-03-27 21:21:26 +0200
commitcbe37a651cdeda191f4af074100c578c22999436 (patch)
treeb12431ef981bd40d32c7c07d657b3b954cb153b1
parenteliminated spurious cxxopts.hpp include (diff)
downloadzen-cbe37a651cdeda191f4af074100c578c22999436.tar.xz
zen-cbe37a651cdeda191f4af074100c578c22999436.zip
Fix alignment for zen command listing
-rw-r--r--zen/zen.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/zen/zen.cpp b/zen/zen.cpp
index e8ed08963..754b1f0a6 100644
--- a/zen/zen.cpp
+++ b/zen/zen.cpp
@@ -240,33 +240,33 @@ main(int argc, char** argv)
const char* CmdSummary;
} Commands[] = {
// clang-format off
-// {"chunk", &ChunkCmd, "Perform chunking"},
- {"copy", &CopyCmd, "Copy file(s)"},
- {"dedup", &DedupCmd, "Dedup files"},
- {"drop", &DropCmd, "Drop cache namespace or bucket"},
- {"hash", &HashCmd, "Compute file hashes"},
- {"print", &PrintCmd, "Print compact binary object"},
- {"printpackage", &PrintPkgCmd, "Print compact binary package"},
- {"status", &StatusCmd, "Show zen status"},
- {"ps", &PsCmd, "Enumerate running zen server instances"},
- {"top", &TopCmd, "Monitor zen server activity"},
- {"up", &UpCmd, "Bring zen server up"},
- {"down", &DownCmd, "Bring zen server down"},
- {"version", &VersionCmd, "Get zen server version"},
- {"cache-info", &CacheInfoCmd, "Info on cache, namespace or bucket"},
- {"project-drop", &ProjectDropCmd, "Drop project or project oplog"},
- {"project-info", &ProjectInfoCmd, "Info on project or project oplog"},
- {"project-create", &CreateProjectCmd, "Create a project"},
- {"oplog-create", &CreateOplogCmd, "Create a project oplog"},
- {"oplog-export", &ExportOplogCmd, "Export project store oplog"},
- {"oplog-import", &ImportOplogCmd, "Import project store oplog"},
- {"gc", &GcCmd, "Garbage collect zen storage"},
- {"gc-status", &GcStatusCmd, "Garbage collect zen storage status check"},
- {"rpc-record-start", &RpcStartRecordingCmd, "Replays a previously recorded session of rpc requests"},
- {"rpc-record-stop", &RpcStopRecordingCmd, "Starts recording of cache rpc requests on a host"},
- {"rpc-record-replay", &RpcReplayCmd, "Stops recording of cache rpc requests on a host"},
+// {"chunk", &ChunkCmd, "Perform chunking"},
+ {"copy", &CopyCmd, "Copy file(s)"},
+ {"dedup", &DedupCmd, "Dedup files"},
+ {"drop", &DropCmd, "Drop cache namespace or bucket"},
+ {"hash", &HashCmd, "Compute file hashes"},
+ {"print", &PrintCmd, "Print compact binary object"},
+ {"printpackage", &PrintPkgCmd, "Print compact binary package"},
+ {"status", &StatusCmd, "Show zen status"},
+ {"ps", &PsCmd, "Enumerate running zen server instances"},
+ {"top", &TopCmd, "Monitor zen server activity"},
+ {"up", &UpCmd, "Bring zen server up"},
+ {"down", &DownCmd, "Bring zen server down"},
+ {"version", &VersionCmd, "Get zen server version"},
+ {"cache-info", &CacheInfoCmd, "Info on cache, namespace or bucket"},
+ {"project-drop", &ProjectDropCmd, "Drop project or project oplog"},
+ {"project-info", &ProjectInfoCmd, "Info on project or project oplog"},
+ {"project-create", &CreateProjectCmd, "Create a project"},
+ {"oplog-create", &CreateOplogCmd, "Create a project oplog"},
+ {"oplog-export", &ExportOplogCmd, "Export project store oplog"},
+ {"oplog-import", &ImportOplogCmd, "Import project store oplog"},
+ {"gc", &GcCmd, "Garbage collect zen storage"},
+ {"gc-status", &GcStatusCmd, "Garbage collect zen storage status check"},
+ {"rpc-record-start", &RpcStartRecordingCmd, "Replays a previously recorded session of rpc requests"},
+ {"rpc-record-stop", &RpcStopRecordingCmd, "Starts recording of cache rpc requests on a host"},
+ {"rpc-record-replay", &RpcReplayCmd, "Stops recording of cache rpc requests on a host"},
#if ZEN_WITH_TESTS
- {"runtests", &RunTestsCmd, "Run zen tests"},
+ {"runtests", &RunTestsCmd, "Run zen tests"},
#endif
// clang-format on
};
@@ -377,7 +377,7 @@ main(int argc, char** argv)
for (const auto& CmdInfo : Commands)
{
- printf(" %-10s %s\n", CmdInfo.CmdName, CmdInfo.CmdSummary);
+ printf(" %-20s %s\n", CmdInfo.CmdName, CmdInfo.CmdSummary);
}
exit(0);