/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
- class PRINT_ARGUMENTS
- --
- -- Example of access to command-line arguments. This example display its arguments.
- --
- insert
- ARGUMENTS
- create {ANY}
- make
- feature {ANY}
- make
- local
- i: INTEGER
- do
- from
- i := 1
- until
- i > argument_count
- loop
- std_output.put_string(argument(i))
- std_output.put_character(' ')
- i := i + 1
- end
- std_output.put_character('%N')
- end
- end -- class PRINT_ARGUMENTS