RosettaCodeData/Task/Documentation/REXX/documentation-2.rexx

20 lines
726 B
Rexx
Raw Permalink Normal View History

2013-10-27 22:24:23 +00:00
/* REXX ***************************************************************
* 13.10.2013 Walter Pachl another way to show documentation
* no tags and good enough if only one documentation block
**********************************************************************/
beghelp=here()+1 /* line where the docmentation begins
Documentation
2015-11-18 06:14:39 +00:00
any text explaining the program's invocation and workings
2013-10-27 22:24:23 +00:00
---
and where it ends */
endhelp=here()-2
If arg(1)='?' Then Do
Do i=beghelp To endhelp
Say sourceline(i)
End
Exit
End
say 'the program would be here!'
Exit
here: return sigl /* returns the invocation's line number */