PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/lib/cli/internal/clarg_with_arg.e

http://github.com/tybor/Liberty
Specman e | 61 lines | 30 code | 8 blank | 23 comment | 0 complexity | 1d3726f41d26333f866f657b948d30ac MD5 | raw file
 1-- This file is part of a Liberty Eiffel library.
 2-- See the full copyright at the end.
 3--
 4deferred class CLARG_WITH_ARG[E_]
 5
 6inherit
 7   COMMAND_LINE_TYPED_ARGUMENT[E_]
 8      undefine
 9         out_in_tagged_out_memory
10      end
11
12insert
13   CLARG_PARSER
14
15feature {ANY}
16   is_repeatable: BOOLEAN False
17
18feature {COMMAND_LINE_ARGUMENTS, COMMAND_LINE_ARGUMENT}
19   prepare_parse
20      do
21         unset
22      end
23
24   is_set_at (context: COMMAND_LINE_CONTEXT): BOOLEAN
25      do
26         Result := is_set
27      end
28
29   undo_parse (context: COMMAND_LINE_CONTEXT)
30      do
31         unset
32      end
33
34feature {}
35   unset
36      deferred
37      ensure
38         not is_set
39      end
40
41end -- class CLARG_WITH_ARG
42--
43-- Copyright (C) 2009-2017: by all the people cited in the AUTHORS file.
44--
45-- Permission is hereby granted, free of charge, to any person obtaining a copy
46-- of this software and associated documentation files (the "Software"), to deal
47-- in the Software without restriction, including without limitation the rights
48-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
49-- copies of the Software, and to permit persons to whom the Software is
50-- furnished to do so, subject to the following conditions:
51--
52-- The above copyright notice and this permission notice shall be included in
53-- all copies or substantial portions of the Software.
54--
55-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
56-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
57-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
58-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
59-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
60-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
61-- THE SOFTWARE.