﻿# ParameterBase.Process(String[], bool) Method
> Namespace: [CommandLineHelper](_toc.CommandLineHelper.md#commandlinehelper-namespace)\
> Assembly: [CommandLineHelper](_toc.CommandLineHelper.md) (CommandLineHelper.dll) version 1.0.0.0
Processes the command line by calling the parse and validation function. 
If the 'showUsageOnEmptyArgs' argument is true and the 'args' argument has no argument which qualifies as parameter argument, the usage screen will be rendered to the console error stream and the return value will be false;

If the validation fails because it was a help request, the help screen will be rendered to the console standard stream and the return value will be false.

If the validation fails because it was a version request, the version screen will be rendered to the console standard stream and the return value will be false.

If the validation fails because of invalid arguments, the validation summary screen will be rendered to the console error stream the return value will be false.

The function returns true if the process was successful and no screen was rendered.

## Syntax
```csharp
public virtual bool Process(String[] args, bool showUsageOnEmptyArgs = true)
```
### Parameters
`args`: [String[]](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The command line arguments which will be processed.
`showUsageOnEmptyArgs`: [bool](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)\
Determines whether the usage screen will be rendered if the args array has no argument which qualifies as parameter argument.
### Return Value
[bool](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)\
true, if the process succeeded, otherwise false
## See Also
- [CommandLineHelper Namespace](_toc.CommandLineHelper.md#commandlinehelper-namespace)
- [ParameterBase Class](CommandLineHelper.ParameterBase.md)
---
_This document is generated by [DG](https://github.com/Khojasteh/dg)._