New program doesn't need extra checks

This commit is contained in:
Matt Nadareski
2024-10-23 22:12:11 -04:00
parent a1b59eb2f3
commit dbecb5d20d

View File

@@ -60,13 +60,6 @@ namespace Headerer
// Get the first argument as a feature flag // Get the first argument as a feature flag
string featureName = args[0]; string featureName = args[0];
// TODO: Remove this block once trimming is no longer needed
// TODO: Update wiki documentation ONLY after this reaches stable
// TODO: Re-evaluate feature flags with this change in mind
featureName = featureName.TrimStart('-');
if (args[0].StartsWith("-"))
logger.User($"Feature flags no longer require leading '-' characters");
// Verify that the flag is valid // Verify that the flag is valid
if (!_help.TopLevelFlag(featureName)) if (!_help.TopLevelFlag(featureName))
{ {