From 33286378b9c6bd456e1b4fd61513761be4b3c8ac Mon Sep 17 00:00:00 2001 From: norayr Date: Mon, 15 May 2017 19:52:50 +0400 Subject: [PATCH] added readme; -- noch --- .../unixstyle_oberon_traditional/readme.md | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 arguments/unixstyle_oberon_traditional/readme.md diff --git a/arguments/unixstyle_oberon_traditional/readme.md b/arguments/unixstyle_oberon_traditional/readme.md new file mode 100644 index 0000000..894e60c --- /dev/null +++ b/arguments/unixstyle_oberon_traditional/readme.md @@ -0,0 +1,46 @@ + +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). +``` +