You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apisprout.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ func main() {
102
102
Version: GitSummary,
103
103
Args: cobra.MinimumNArgs(1),
104
104
Run: server,
105
-
Example: fmt.Sprintf(" %s openapi.yaml", cmd),
105
+
Example: fmt.Sprintf(" # Basic usage\n%s openapi.yaml\n\n # Validate server name and use base path\n %s --validate-server openapi.yaml\n\n # Fetch API via HTTP with custom auth header\n %s -H 'Authorization: abc123' http://example.com/openapi.yaml", cmd, cmd, cmd),
106
106
}
107
107
108
108
// Set up global options.
@@ -113,7 +113,7 @@ func main() {
113
113
addParameter(flags, "validate-request", "", false, "Check request data structure")
114
114
addParameter(flags, "watch", "w", false, "Reload when input file changes")
115
115
addParameter(flags, "disable-cors", "", false, "Disable CORS headers")
0 commit comments