Skip to content

Commit

Permalink
Remove working directory override in CLI (#793)
Browse files Browse the repository at this point in the history
Fixes an issue with relative paths in MacOS
  • Loading branch information
ScrubN authored Aug 17, 2023
1 parent 9cc0e9c commit 36773a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions TwitchDownloaderCLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@

namespace TwitchDownloaderCLI
{
class Program
internal static class Program
{
private static void Main(string[] args)
{
// Set the working dir to the app dir in case we inherited a different working dir
Directory.SetCurrentDirectory(AppContext.BaseDirectory);

var preParsedArgs = PreParseArgs.Parse(args, Path.GetFileName(Environment.ProcessPath));

var parser = new Parser(config =>
Expand Down

0 comments on commit 36773a8

Please sign in to comment.