diff options
Diffstat (limited to 'Examples/MicrophoneCS')
| -rw-r--r-- | Examples/MicrophoneCS/CommandLineArgs.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/MicrophoneCS/CommandLineArgs.cs b/Examples/MicrophoneCS/CommandLineArgs.cs index be5fbe9..9eee28c 100644 --- a/Examples/MicrophoneCS/CommandLineArgs.cs +++ b/Examples/MicrophoneCS/CommandLineArgs.cs @@ -98,6 +98,8 @@ namespace MicrophoneCS else throw new ArgumentException( $"Unknown argument: \"{arg}\"" ); } + if( listDevices ) + return; if( string.IsNullOrWhiteSpace( model ) ) throw new ArgumentException( "The model file is not provided in the arguments" ); if( !File.Exists( model ) ) |
