main: group flag variables

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-11-17 22:00:23 -05:00
parent f51a3381de
commit 353436a031
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -15,11 +15,14 @@ import (
) )
var ( var (
flCreate = flag.Bool("c", false, "create a directory hierarchy spec") // Flags common with mtree(8)
flFile = flag.String("f", "", "directory hierarchy spec to validate") flCreate = flag.Bool("c", false, "create a directory hierarchy spec")
flPath = flag.String("p", "", "root path that the hierarchy spec is relative to") flFile = flag.String("f", "", "directory hierarchy spec to validate")
flAddKeywords = flag.String("K", "", "Add the specified (delimited by comma or space) keywords to the current set of keywords") flPath = flag.String("p", "", "root path that the hierarchy spec is relative to")
flUseKeywords = flag.String("k", "", "Use the specified (delimited by comma or space) keywords as the current set of keywords") flAddKeywords = flag.String("K", "", "Add the specified (delimited by comma or space) keywords to the current set of keywords")
flUseKeywords = flag.String("k", "", "Use the specified (delimited by comma or space) keywords as the current set of keywords")
// Flags unique to gomtree
flListKeywords = flag.Bool("list-keywords", false, "List the keywords available") flListKeywords = flag.Bool("list-keywords", false, "List the keywords available")
flResultFormat = flag.String("result-format", "bsd", "output the validation results using the given format (bsd, json, path)") flResultFormat = flag.String("result-format", "bsd", "output the validation results using the given format (bsd, json, path)")
flTar = flag.String("T", "", "use tar archive to create or validate a directory hierarchy spec (\"-\" indicates stdin)") flTar = flag.String("T", "", "use tar archive to create or validate a directory hierarchy spec (\"-\" indicates stdin)")