             help=help,
             metavar=metavar)
 
-    def __call__(self, parser, namespace, values, option_string=None):
-        setattr(namespace, self.dest, values)
-
-
-class _StoreConstAction(Action):
-
-    def __init__(self,
+    __call__: (parser, namespace, values, option_string=null) ->
+        setattr(namespace, @dest, values)
+
+
+class _StoreConstAction extends Action
+
+    constructor: (options) ->
                  option_strings,
                  dest,
                  const,

        # level parser can decide what to do with them
        namespace, arg_strings = parser.parse_known_args(arg_strings, namespace)
        if arg_strings:
            vars(namespace).setdefault(_UNRECOGNIZED_ARGS_ATTR, [])
            getattr(namespace, _UNRECOGNIZED_ARGS_ATTR).extend(arg_strings)


            help=help,
            metavar=metavar)

    __call__: (parser, namespace, values, option_string=null) ->
        items = _copy.copy(_ensure_value(namespace, @dest, []))
        items.append(values)
        setattr(namespace, @dest, items)


class _AppendConstAction extends Action

    constructor: (options) ->
                 option_strings,
                 dest,
                 const,
