Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 1937b9a

Browse files
committed
Reorder copyright and nocopyright together
This is in preparation for fixing #151.
1 parent da1903d commit 1937b9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CodeFormatter/CommandLineParser.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ public static CommandLineParseResult Parse(string[] args)
194194
return CommandLineParseResult.CreateError(error);
195195
}
196196
}
197-
else if (arg.StartsWith(LanguageSwitch, comparison))
198-
{
199-
language = arg.Substring(LanguageSwitch.Length);
200-
}
201197
else if (comparer.Equals(arg, "/nocopyright"))
202198
{
203199
ruleMap = ruleMap.SetItem(FormattingDefaults.CopyrightRuleName, false);
204200
}
201+
else if (arg.StartsWith(LanguageSwitch, comparison))
202+
{
203+
language = arg.Substring(LanguageSwitch.Length);
204+
}
205205
else if (comparer.Equals(arg, "/nounicode"))
206206
{
207207
ruleMap = ruleMap.SetItem(FormattingDefaults.UnicodeLiteralsRuleName, false);

0 commit comments

Comments
 (0)