-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cli parsing - handle correctly false value for validator (#146)
* Rename command-line argument from `--validate-integrity-sha512` to `--validate-integrity` * Add validator only if commandValue is not falsy * Added tests to make sure validator does not run when flag is missing, or flag is set to "false" * Added another cli test for the integrity validator * Refactor: Add validator only if commandValue is not falsy
- Loading branch information
Showing
2 changed files
with
87 additions
and
9 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
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