Change variable name to `forceOpt`

This commit is contained in:
Ismael Juma 2016-05-26 00:45:56 +01:00
parent 0bb27af39b
commit 78b8467808
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ object AclCommand {
}
private def confirmAction(opts: AclCommandOptions, msg: String): Boolean = {
if (opts.options.has(opts.yesOpt))
if (opts.options.has(opts.forceOpt))
return true
println(msg)
Console.readLine().equalsIgnoreCase("y")
@ -331,7 +331,7 @@ object AclCommand {
val helpOpt = parser.accepts("help", "Print usage information.")
val yesOpt = parser.accepts("force", "Assume Yes to all queries and do not prompt.")
val forceOpt = parser.accepts("force", "Assume Yes to all queries and do not prompt.")
val options = parser.parse(args: _*)