Skip to content

Commit

Permalink
Added missing mode checking
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKay committed Aug 29, 2021
1 parent 196987b commit 8ba26e2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions CompressAR/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,17 @@ static void Main(string[] args)
throw new InvalidOperationException("Invalid files specified. Files must be AR files");
}


ARCompressor.CompressFiles(files);
switch(args[0])
{
case "-c":
ARCompressor.CompressFiles(files);
break;
case "-d":
ARCompressor.DecompressFiles(files);
break;
default:
throw new InvalidOperationException("Invalid operation mode specified");
}
}
}
}

0 comments on commit 8ba26e2

Please sign in to comment.