Skip to content

Commit

Permalink
main.c :add help command
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 authored Dec 16, 2017
1 parent 7a9fc72 commit d5266e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ int main()
fwprintf(stderr,L"ERROR:Invalid Arguments\n");
return 1;
}
else if(wcscmp(wargv[1],L"help") == 0)
{
show_usage();
return 0;
}
else
{
fwprintf(stderr,L"ERROR:Invalid Arguments.\n");
Expand Down Expand Up @@ -307,4 +312,7 @@ void show_usage()
wprintf(L" - `--append-path`: Get on/off status of Append Windows PATH to $PATH\n");
wprintf(L" - `--mount-drive`: Get on/off status of Mount drives\n");
wprintf(L" - `--lxuid`: Get LxUID key for this distro\n\n");
wprintf(L" help\n");
wprintf(L" - Print this usage message.\n\n");

}

0 comments on commit d5266e8

Please sign in to comment.