Skip to content

Commit

Permalink
v2.0.1 - fixed dscraper regex arg
Browse files Browse the repository at this point in the history
  • Loading branch information
jewels86 committed Dec 17, 2024
1 parent c7f6202 commit 44e349f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ No flags so far.
- ~~Finish CMS detection~~
- ~~Web Scraping~~
- Add some pictures to readme
- Update the dscraper to take regex as a required arg
- ~~Update the dscraper to take regex as a required arg~~

### Small Todos
- Add a `--version` flag
Expand Down
4 changes: 2 additions & 2 deletions Tourmaline/Commands/DataScraperCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class Settings : CommandSettings
[CommandArgument(1, "<PATHS-FILE>")]
public required string Paths { get; set; }

[CommandOption("-r|--regex <REGEX>")]
public string Regex { get; set; } = @".*";
[CommandArgument(1, "<REGEX>")]
public required string Regex { get; set; }
}

public async override Task<int> ExecuteAsync(CommandContext context, Settings settings)
Expand Down

0 comments on commit 44e349f

Please sign in to comment.