RosettaCodeData/Task/Command-line-arguments/Deja-Vu/command-line-arguments.djv

10 lines
174 B
Text
Raw Permalink Normal View History

2014-01-17 05:32:22 +00:00
for i range 0 -- len !args:
print\( "Argument #" i " is " )
. get-from !args i
if has !opts :c:
!print "Ah, the -c option."
if has !opts :four:
!. get-from !opts :four