diff options
author | Vladimir Lavor <vlavor@cisco.com> | 2020-08-19 16:08:39 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2020-08-25 10:01:49 +0000 |
commit | a4e8bf2efe9189ce795f87ab07adbb3780d01d7d (patch) | |
tree | d8f168f80045c2f49a262f9822512a9f1a6f4256 /cmd | |
parent | ff0a39377533365e128c3364395c6bfbae8d5b1a (diff) |
Binapi generator: improved file input
In addition to the standard file name input (for example "vpe"),
binary API generator now again accepts full file path like
"/usr/share/vpp/api/core/vpe.api.json" as an input direcotry or
argument.
Change-Id: I591b5d26e7f101cdcc4af64d3bdabaab48b5b2ef
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/binapi-generator/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/binapi-generator/main.go b/cmd/binapi-generator/main.go index 3dc2c08..af60628 100644 --- a/cmd/binapi-generator/main.go +++ b/cmd/binapi-generator/main.go @@ -32,6 +32,7 @@ import ( func init() { flag.Usage = func() { fmt.Fprintf(os.Stderr, "Usage: %s [OPTION] API_FILES\n", os.Args[0]) + fmt.Fprintln(os.Stderr, "Provide API_FILES by file name, or with full path including extension.") fmt.Fprintln(os.Stderr, "Parse API_FILES and generate Go bindings based on the options given:") flag.PrintDefaults() } |