oberonbyexample/arguments/unixstyle_oberon_traditional
2017-05-15 19:52:50 +04:00
..
makefile added makefile; -- noch 2017-05-15 19:49:07 +04:00
partest.Mod unix style command line arguments by calling traditional oberon 2017-05-15 19:46:45 +04:00
readme.md added readme; -- noch 2017-05-15 19:52:50 +04:00

example shows how to implement unix style arguments parsing by using traditional oberon functions from modules Texts and Oberon.

compile

make

run

make test

or type

./partest -str aaa -int 111

that should produce the following output

hello, world, let's see which arguments do we get
key: str
value: aaa
key: int
value: 111
./partest -str 000 -int 111

the output will be

hello, world, let's see which arguments do we get
key: str
string expected
Terminated by Halt(1).