diff options
| author | Konstantin <const@const.me> | 2023-02-03 13:04:00 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-02-03 13:04:00 +0100 |
| commit | 3cff5d22de44b21333390b442dafcc0ccde9e196 (patch) | |
| tree | f888c511da0ba74e506e914d084c3ed5cc902a95 /Examples/MicrophoneCS/CommandLineArgs.cs | |
| parent | 9cfdfc7a49f038b8ac806e0413c1a22e49191604 (diff) | |
UX bugfix, microphone C# example
Diffstat (limited to 'Examples/MicrophoneCS/CommandLineArgs.cs')
| -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 ) ) |
