We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e258751 + f240047 commit d5aba76Copy full SHA for d5aba76
src/SignClient/SignCommand.cs
@@ -25,6 +25,7 @@ static class EXIT_CODES
25
public const int SUCCESS = 0;
26
public const int INVALID_OPTIONS = 1;
27
public const int FAILED = 2;
28
+ public const int NO_INPUTS_FOUND = 3;
29
}
30
31
public SignCommand(CommandLineApplication signCommandLineApplication)
@@ -168,6 +169,12 @@ CommandOption maxConcurrency
168
169
return EXIT_CODES.INVALID_OPTIONS;
170
171
172
+ if (inputFiles.Count == 0)
173
+ {
174
+ signCommandLineApplication.Error.WriteLine("No inputs found to sign.");
175
+ return EXIT_CODES.NO_INPUTS_FOUND;
176
+ }
177
+
178
Parallel.ForEach(inputFiles,new ParallelOptions { MaxDegreeOfParallelism = maxC } , input =>
179
{
180
FileInfo output;
0 commit comments