- readable var _options: Array[Option]
- readable var _rest: Array[String]
- readable var _errors: Array[String]
+ # Options present in the context
+ var options = new Array[Option]
+
+ # Rest of the options after `parse` is called
+ var rest = new Array[String]
+
+ # Errors found in the context after parsing
+ var errors = new Array[String]
+
+ private var optmap = new HashMap[String, Option]
+
+ # Add one or more options to the context
+ fun add_option(opts: Option...) do
+ options.add_all(opts)
+ end