@@ -87,7 +87,7 @@ class SettingsTests {
8787
8888 @ Test def `bad option warning consumes an arg` : Unit =
8989 object Settings extends SettingGroup :
90- val option = BooleanSetting (" " , " - option" , " Some option" )
90+ val option = BooleanSetting (" " , " option" , " Some option" )
9191
9292 val args = List (" -adoption" , " dogs" , " cats" )
9393 val summary = Settings .processArguments(args, processAll = true )
@@ -97,7 +97,7 @@ class SettingsTests {
9797
9898 @ Test def `bad option settings throws` : Unit =
9999 object Settings extends SettingGroup :
100- val option = BooleanSetting (" " , " - option" , " Some option" )
100+ val option = BooleanSetting (" " , " option" , " Some option" )
101101
102102 def checkMessage (s : String ): (Throwable => Boolean ) = t =>
103103 if t.getMessage == s then true
@@ -112,12 +112,12 @@ class SettingsTests {
112112
113113 @ Test def validateChoices : Unit =
114114 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 )
118118
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 )
121121
122122 locally {
123123 val args = List (" -foo" , " b" , " -bar" , " 1" , " -baz" , " 5" )
@@ -181,10 +181,10 @@ class SettingsTests {
181181
182182 @ Test def `Set BooleanSettings correctly` : Unit =
183183 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 )
188188 import Settings ._
189189
190190 val args = List (" -foo:true" , " -bar:false" , " -baz" , " -qux:true" , " -qux:false" )
0 commit comments