Rename "full" output format to "json"

This commit is contained in:
2018-07-08 04:04:28 +01:00
parent eb884f9330
commit ff47b38471
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ objects are present in both B and C, and not present in A.`,
switch leakOpts.Format {
case "hex":
finder.PrintLeakedAddresses()
case "full":
case "json":
finder.PrintLeakedObjects()
default:
usage_er(
@@ -55,7 +55,7 @@ func init() {
leakCmd.PersistentFlags().StringVarP(
&leakOpts.Format,
"format", "f", "hex",
"output format: \"hex\" / \"full\"",
"output format: \"hex\" / \"json\"",
)
leakCmd.PersistentFlags().BoolVarP(