Shell.GetArgumentCount
----------------------

Queries number of arguments.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Shell](component_Shell.md) | [7.5](newinversion75.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Shell.GetArgumentCount"; ShellRef ) 

**MBS**( **"Shell.GetArgumentCount";** /\* Queries number of arguments. \*/  
**$ShellRef**) /\* The reference number from the shell.e.g. $shell \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |

### Result

Returns number or error.

### Description

Queries number of arguments.  
### See also

- [Shell.GetArgument](ShellGetArgument.md)
- [Shell.GetArguments](ShellGetArguments.md)
- [Shell.SetArgumentsList](ShellSetArgumentsList.md)

This function checks for a license.

Created 11st November 2017 , last changed 11st November 2017

  
[Shell.GetArgument](ShellGetArgument.md) - [Shell.GetArguments](ShellGetArguments.md)

[HTML Version](ShellGetArgumentCount.shtml)