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') {