Skip to content

Commit 4d548dc

Browse files
committed
Fix Issue #9
Location is marked as a required option now, hence running the binary without specifying the "location" flag returns a descriptive error rather than "panicking" Signed-off-by: Utkarsh Srivastava <[email protected]>
1 parent 099545c commit 4d548dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ program
1010
"set type of input, can be either yaml or json",
1111
"yaml"
1212
)
13-
.option("-l, --location <location>", "location of the schema")
13+
.requiredOption("-l, --location <location>", "location of the schema")
1414
.option("-f, --filter [query]", "give a query if a OpenAPISchema is nested")
1515
.option("--kubernetes", "enable kubernetes specific filters", false)
1616
.option("-o [output-format]", "output format", "json")

0 commit comments

Comments
 (0)