github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/gen/variables/ARGV_doc.yaml (about) 1 - DocumentID: argv 2 Title: >- 3 `ARGV` (json) 4 CategoryID: variables 5 Summary: >- 6 Array of the command name and parameters within a given 7 scope 8 Description: |- 9 `ARGV` returns an array of the command name and parameters within a given 10 scope. eg `function`, `private`, `autocomplete` or shell script. 11 12 Unlike `$PARAMS`, `$ARGV` includes the function name. 13 14 This is a reserved variable so it cannot be changed. 15 Examples: |- 16 ``` 17 » function example { $ARGV } 18 » example abc 1 2 3 19 [ 20 "example", 21 "abc", 22 "1", 23 "2", 24 "3" 25 ] 26 ``` 27 Detail: |- 28 ### Deprecation of `ARGS` 29 30 In Murex versions 4.x and below, this variable was named `ARGS` (with an 'S'). 31 However in Murex 5.x and above it was renamed to `ARGV` (with a 'V') to unify 32 the name with other languages. 33 34 `ARGS` will remain available for compatibility reasons but is considered 35 deprecated and may be removed from future releases. 36 Synonyms: 37 - argv 38 - ARGV 39 - ARGS 40 Related: 41 - params 42 - json 43 - string 44 - array 45 - set 46 - function 47 - private 48 - autocomplete 49 - out 50 - scoping 51 - pipeline 52 - modules 53 - reserved-vars