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