X-Git-Url: http://nitlanguage.org diff --git a/lib/opts.nit b/lib/opts.nit index 59391cd..f668ba3 100644 --- a/lib/opts.nit +++ b/lib/opts.nit @@ -11,8 +11,11 @@ # You are allowed to redistribute it and sell it, alone or is a part of # another product. +# Management of options on the command line +module opts + # Super class of all option's class -class Option +abstract class Option # Names for the option (including long and short ones) readable var _names: Array[String] @@ -106,7 +109,7 @@ class OptionCount end # Option with one mandatory parameter -class OptionParameter +abstract class OptionParameter super Option protected fun convert(str: String): VALUE is abstract