lncli: correct docs for loadmc

This commit is contained in:
bitromortac 2025-05-06 09:48:20 +02:00
parent 7b6c1cf840
commit 56ccf60267
No known key found for this signature in database
GPG Key ID: 1965063FC13BEBE2

View File

@ -106,7 +106,7 @@ var loadMissionControlCommand = cli.Command{
Name: "loadmc", Name: "loadmc",
Category: "Mission Control", Category: "Mission Control",
Usage: "Load mission control results to the internal mission " + Usage: "Load mission control results to the internal mission " +
"control state from a file produced by querymc with the " + "control state from a file produced by `querymc` with the " +
"option to shift timestamps. Note that this data is not " + "option to shift timestamps. Note that this data is not " +
"persisted across restarts.", "persisted across restarts.",
Action: actionDecorator(loadMissionControl), Action: actionDecorator(loadMissionControl),
@ -122,12 +122,12 @@ var loadMissionControlCommand = cli.Command{
cli.StringFlag{ cli.StringFlag{
Name: "timeoffset", Name: "timeoffset",
Usage: "Time offset to add to all timestamps. " + Usage: "Time offset to add to all timestamps. " +
"Format: 1m for a minute, 1h for an hour, 1d " + "Follows a format like 72h3m0.5s. " +
"for one day. This can be used to let " + "This can be used to make mission control " +
"mission control data appear to be more " + "data appear more recent, to trick " +
"recent, to trick pathfinding's in-built " + "pathfinding's in-built information decay " +
"information decay mechanism. Additionally " + "mechanism. Additionally, " +
"by setting 0m, this will report the most " + "by setting 0s, this will report the most " +
"recent result timestamp, which can be used " + "recent result timestamp, which can be used " +
"to find out how old this data is.", "to find out how old this data is.",
}, },
@ -222,7 +222,7 @@ func loadMissionControl(ctx *cli.Context) error {
} }
} }
fmt.Printf("Adding time offset %v to all timestamps. "+ fmt.Printf("Added a time offset %v to all timestamps. "+
"New max timestamp: %v\n", offset, maxTimestamp) "New max timestamp: %v\n", offset, maxTimestamp)
} }