- :dictionary
args
get all command-line arguments parsed as a dictionary
Parameters
args
Returns
Examples
copy; called with: 1 two 3 args ; => #[ ; 1 ; "two" ; 3 ; ]
copy; called with switches: -c -b args ; => #[ ; c : true ; b : true ; values: [] ; ] ; called with switches: -c -b and values: 1 two 3 args ; => #[ ; c : true ; b : true ; values: [1 "two" 3] ; ]
copy; called with named parameters: -c:2 --name:newname myfile.txt args ; => #[ ; c : 2 ; name : "newname" ; values: ["myfile.txt"] ; ]