Usage on stderr

This commit is contained in:
madmaurice 2021-01-15 20:22:22 +01:00
parent d1664d03f8
commit 5928224d87

5
main.c
View file

@ -66,8 +66,9 @@ int main(int argc, const char** argv)
if (argc == 1)
{
printf("Usage: pidjail PROGRAM ARGUMENTS...\n"
"Run command within its own pid namespace. Integrated init process.\n");
fprintf(stderr,"Usage: %s PROGRAM ARGUMENTS...\n"
"Run command within its own pid namespace. Integrated init process.\n",
argv[0]);
return 0;
}