/tutorial/print_arguments.e

http://github.com/tybor/Liberty · Specman e · 29 lines · 22 code · 4 blank · 3 comment · 0 complexity · 4c0a2dccbabe86530d15d40b501fb012 MD5 · raw file

  1. class PRINT_ARGUMENTS
  2. --
  3. -- Example of access to command-line arguments. This example display its arguments.
  4. --
  5. insert
  6. ARGUMENTS
  7. create {ANY}
  8. make
  9. feature {ANY}
  10. make
  11. local
  12. i: INTEGER
  13. do
  14. from
  15. i := 1
  16. until
  17. i > argument_count
  18. loop
  19. std_output.put_string(argument(i))
  20. std_output.put_character(' ')
  21. i := i + 1
  22. end
  23. std_output.put_character('%N')
  24. end
  25. end -- class PRINT_ARGUMENTS