Skip to content

Commit

Permalink
issue-6: make "all" the default for modules"
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljon committed May 17, 2022
1 parent e008268 commit ac22a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/ModuleFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static class ModuleFactory

public static IEnumerable<IQcModule> Create(CliOptions settings)
{
if (settings.ModuleNames.First() == "all")
if (settings.ModuleNames.Any() == false || settings.ModuleNames.First() == "all")
{
settings.ModuleNames = moduleMap.Keys;
return moduleMap.Values;
Expand Down
2 changes: 1 addition & 1 deletion Utils/CliOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CliOptions
[Option('z', "zipped", Required = false, HelpText = "Assume input file is gzipped.")]
public bool Zipped { get; set; }

[Option('m', "modules", Required = true, Min = 1, HelpText = "Space-separated list of modules to run, or 'all'.")]
[Option('m', "modules", Required = false, HelpText = "Space-separated list of modules to run, or 'all'.")]
public IEnumerable<string> ModuleNames { get; set; }

public static CliOptions Settings
Expand Down

0 comments on commit ac22a74

Please sign in to comment.