From 31daae4a5001f32727daf6c6aaf5e74821e7aa73 Mon Sep 17 00:00:00 2001 From: Delofon Date: Sun, 15 May 2022 14:11:48 +0300 Subject: [PATCH] Fix args bs in decoder --- QOIDecoder/DecoderProgram.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QOIDecoder/DecoderProgram.cs b/QOIDecoder/DecoderProgram.cs index ec31c10..18e0637 100644 --- a/QOIDecoder/DecoderProgram.cs +++ b/QOIDecoder/DecoderProgram.cs @@ -32,7 +32,7 @@ static void Main(string[] args) { if (arg.StartsWith('-')) { - foreach (char opt in args[0].Substring(1)) + foreach (char opt in arg.Substring(1)) { if (opt == 'h') {