1
0

Show last log if no ID specified

This commit is contained in:
2020-06-14 20:46:56 +00:00
parent 22a8e32e2c
commit 992c41c84b
4 changed files with 28 additions and 2 deletions

View File

@ -217,7 +217,7 @@ func main() {
logDumpCommand := logCommand.Command("dump",
"Show all info for log entry with ID")
logDumpID := logDumpCommand.Arg("ID", "").Required().Int()
logDumpID := logDumpCommand.Arg("ID", "").Default("-1").Int()
logJSONCommand := logCommand.Command("json", "Generate json statistics")
logJSONTag := logJSONCommand.Flag("tag", "Filter tag").Required().String()