Skip to content

Commit 2acf359

Browse files
committed
Adds more help flags
1 parent caa7846 commit 2acf359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/https/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public static Options Parse(IEnumerable<string> args)
447447
{
448448
version = true;
449449
}
450-
else if (arg.StartsWith("--help"))
450+
else if (arg.StartsWith("--help") || arg.StartsWith("-?") || arg.StartsWith("help"))
451451
{
452452
help = true;
453453
}
@@ -713,7 +713,7 @@ public static bool TryParse(string methodText, string uriText, out Command comma
713713
public static bool TryParse(string s, out Command command)
714714
{
715715
s = s.Trim();
716-
if (s.StartsWith('-'))
716+
if (s.StartsWith('-') || s == "help")
717717
{
718718
command = default;
719719
return false;

0 commit comments

Comments
 (0)