Skip to content

Commit

Permalink
Merge pull request #12 from appknox/risk-threshold-flag
Browse files Browse the repository at this point in the history
Change flag risk_threshold to risk-threshold
  • Loading branch information
Praseetha-KR authored Sep 16, 2019
2 parents b3da6c8 + 358374a commit f705cca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ $ appknox files 4
- **Upload a file and do cicheck based on the risk threshold**
$ appknox upload ~/Downloads/mfva.apk | xargs appknox cicheck --risk_threshold low
$ appknox upload ~/Downloads/mfva.apk | xargs appknox cicheck --risk-threshold low
2.3 MiB / 2.3 MiB [==========================================================| 00:00 ] 226.28 KiB/s
Static Scan Progress: 100 % [==========================================================| ]
Expand Down
4 changes: 2 additions & 2 deletions cmd/cicheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var cicheckCmd = &cobra.Command{
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
riskThreshold, _ := cmd.Flags().GetString("risk_threshold")
riskThreshold, _ := cmd.Flags().GetString("risk-threshold")
riskThresholdLower := strings.ToLower(riskThreshold)
var riskThresholdInt int
switch riskThresholdStr := riskThresholdLower; riskThresholdStr {
Expand All @@ -52,5 +52,5 @@ var cicheckCmd = &cobra.Command{
func init() {
RootCmd.AddCommand(cicheckCmd)
cicheckCmd.Flags().StringP(
"risk_threshold", "r", "low", "Risk threshold to fail the command. Available options: low, medium, high")
"risk-threshold", "r", "low", "Risk threshold to fail the command. Available options: low, medium, high")
}

0 comments on commit f705cca

Please sign in to comment.