We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ab2bdb commit dbc8442Copy full SHA for dbc8442
src/winapp-CLI/WinApp.Cli/Program.cs
@@ -76,6 +76,13 @@ static async Task<int> Main(string[] args)
76
77
CommandCompletedEvent.Log(parseResult.CommandResult, returnCode);
78
79
+ if (args.Length == 0)
80
+ {
81
+ // Temporary special case: If no arguments are provided, return 0 to indicate success.
82
+ // This is because winget's validation currently doesn't like us returning failure here.
83
+ returnCode = 0;
84
+ }
85
+
86
return returnCode;
87
}
88
catch (Exception ex)
0 commit comments