-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate and print usage in case of wrong entrypoint usage (#49)
The entrypoint assumes a second ($2) argument is a json string but immediatly after evaluating the first one if shifts, rendering the $2 empty. Since there is no input validation it was impossible to understand the problem without reading the code. - validate that 3 args are passed in - print a usage error with usefull info - map the deprecated flag so it will be easy to remove in the future Signed-off-by: Roy Golan <[email protected]>
- Loading branch information
Showing
1 changed file
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters