summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-19 00:35:30 -0600
committerJeff Carr <[email protected]>2025-01-19 00:35:30 -0600
commitace99c8aa8ad8b95aa13d7716d8d61f38a18acdf (patch)
treee0ba7fff195982a711cf3d1cf4b20f22d8cf828b /main.go
parentda03400035434ae9b055cb0842a3cac557d70b32 (diff)
add --identify
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.go b/main.go
index 381b2fd..78e58a2 100644
--- a/main.go
+++ b/main.go
@@ -34,6 +34,13 @@ func main() {
var pb *Files
pb = new(Files)
+ if argv.Identify != "" {
+ if err := doIdentify(argv.Identify); err != nil {
+ badExit(err)
+ }
+ okExit("")
+ }
+
// you need a proto file
if argv.Proto == "" {
log.Info("you must provide --proto <filename>")