Interactive help: Difference between revisions

m
→‎{{header|Wren}}: Version change.
m (→‎{{header|Wren}}: Version change.)
 
(One intermediate revision by one other user not shown)
Line 9:
 
=={{header|AWK}}==
<syntaxhighlight lang="awk">
<lang AWK>
# syntax: GAWK --help
</syntaxhighlight>
</lang>
{{out}}
<pre>
Line 329:
=={{header|Julia}}==
When Julia is run without a program file as argument, the REPL (Read-Evaluate-Print Loop) runs. Entering a ? at the prompt brings up help, with help on a specific topic obtained if the topic name is preceded by ? at the prompt.
<langsyntaxhighlight lang="julia">
 
> julia
Line 372:
The use of the return keyword is exactly the same as in other languages, but is often optional. A function without
an explicit return statement will return the last expression in the function body.
</syntaxhighlight>
</lang>
 
=={{header|Nim}}==
Line 853:
Individual Raku scripts are to some extent self-documenting. If the script has a MAIN sub, and it is called with improper parameters, it will display an automatically generated help message showing the various possible parameters, which are required, which are optional, and what type each takes:
 
<syntaxhighlight lang="raku" perl6line>sub MAIN(
Str $run, #= Task or file name
Str :$lang = 'raku', #= Language, default raku
Line 860:
) {
# do whatever
}</langsyntaxhighlight>
 
{{out|When saved locally as main.raku and invoked with no (or wrong) passed parameters}}
Line 990:
 
$ wren_cli --version
wren 0.34.0
</pre>
 
 
=={{header|Yabasic}}==
9,479

edits