@@ -87,7 +87,7 @@ class SettingsTests {
87
87
88
88
@ Test def `bad option warning consumes an arg` : Unit =
89
89
object Settings extends SettingGroup :
90
- val option = BooleanSetting (" " , " - option" , " Some option" )
90
+ val option = BooleanSetting (" " , " option" , " Some option" )
91
91
92
92
val args = List (" -adoption" , " dogs" , " cats" )
93
93
val summary = Settings .processArguments(args, processAll = true )
@@ -97,7 +97,7 @@ class SettingsTests {
97
97
98
98
@ Test def `bad option settings throws` : Unit =
99
99
object Settings extends SettingGroup :
100
- val option = BooleanSetting (" " , " - option" , " Some option" )
100
+ val option = BooleanSetting (" " , " option" , " Some option" )
101
101
102
102
def checkMessage (s : String ): (Throwable => Boolean ) = t =>
103
103
if t.getMessage == s then true
@@ -112,12 +112,12 @@ class SettingsTests {
112
112
113
113
@ Test def validateChoices : Unit =
114
114
object Settings extends SettingGroup :
115
- val foo = ChoiceSetting (" " , " - foo" , " foo" , " Foo" , List (" a" , " b" ), " a" )
116
- val bar = IntChoiceSetting (" " , " - bar" , " Bar" , List (0 , 1 , 2 ), 0 )
117
- val baz = IntChoiceSetting (" " , " - baz" , " Baz" , 0 to 10 , 10 )
115
+ val foo = ChoiceSetting (" " , " foo" , " foo" , " Foo" , List (" a" , " b" ), " a" )
116
+ val bar = IntChoiceSetting (" " , " bar" , " Bar" , List (0 , 1 , 2 ), 0 )
117
+ val baz = IntChoiceSetting (" " , " baz" , " Baz" , 0 to 10 , 10 )
118
118
119
- val quux = ChoiceSetting (" " , " - quux" , " quux" , " Quux" , List (), " " )
120
- val quuz = IntChoiceSetting (" " , " - quuz" , " Quuz" , List (), 0 )
119
+ val quux = ChoiceSetting (" " , " quux" , " quux" , " Quux" , List (), " " )
120
+ val quuz = IntChoiceSetting (" " , " quuz" , " Quuz" , List (), 0 )
121
121
122
122
locally {
123
123
val args = List (" -foo" , " b" , " -bar" , " 1" , " -baz" , " 5" )
@@ -181,10 +181,10 @@ class SettingsTests {
181
181
182
182
@ Test def `Set BooleanSettings correctly` : Unit =
183
183
object Settings extends SettingGroup :
184
- val foo = BooleanSetting (" " , " - foo" , " foo" , false )
185
- val bar = BooleanSetting (" " , " - bar" , " bar" , true )
186
- val baz = BooleanSetting (" " , " - baz" , " baz" , false )
187
- val qux = BooleanSetting (" " , " - qux" , " qux" , false )
184
+ val foo = BooleanSetting (" " , " foo" , " foo" , false )
185
+ val bar = BooleanSetting (" " , " bar" , " bar" , true )
186
+ val baz = BooleanSetting (" " , " baz" , " baz" , false )
187
+ val qux = BooleanSetting (" " , " qux" , " qux" , false )
188
188
import Settings ._
189
189
190
190
val args = List (" -foo:true" , " -bar:false" , " -baz" , " -qux:true" , " -qux:false" )
0 commit comments