Permalink
Browse files

Make --help an alias for -help

I'm tired of typing 'scalac --help' and it whining that I should have
typed 'scalac -help'
  • Loading branch information...
greedy committed Feb 10, 2012
1 parent 34233f0 commit 776688f262512c40e572e3ba114e3c229012d3fc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/compiler/scala/tools/nsc/settings/StandardScalaSettings.scala
@@ -33,7 +33,7 @@ trait StandardScalaSettings {
val encoding = StringSetting ("-encoding", "encoding", "Specify character encoding used by source files.", Properties.sourceEncoding)
val explaintypes = BooleanSetting ("-explaintypes", "Explain type errors in more detail.")
val g = ChoiceSetting ("-g", "level", "Set level of generated debugging info.", List("none", "source", "line", "vars", "notailcalls"), "vars")
- val help = BooleanSetting ("-help", "Print a synopsis of standard options")
+ val help = BooleanSetting ("-help", "Print a synopsis of standard options") withAbbreviation "--help"
val make = ChoiceSetting ("-make", "policy", "Recompilation detection policy", List("all", "changed", "immediate", "transitive", "transitivenocp"), "all")
. withDeprecationMessage ("this option is unmaintained. Use sbt or an IDE for selective recompilation.")
val nowarn = BooleanSetting ("-nowarn", "Generate no warnings.")

0 comments on commit 776688f

Please sign in to comment.