Skip to content

Commit

Permalink
Add documentation and long option
Browse files Browse the repository at this point in the history
  • Loading branch information
eldering committed Apr 3, 2024
1 parent d37d91b commit f871346
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions judge/runguard.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ struct option const long_opts[] = {
{"environment",no_argument, NULL, 'E'},
{"variable", required_argument, NULL, 'V'},
{"outmeta", required_argument, NULL, 'M'},
{"runpipepid", required_argument, NULL, 'U'},
{"verbose", no_argument, NULL, 'v'},
{"quiet", no_argument, NULL, 'q'},
{"help", no_argument, &show_help, 1 },
Expand Down Expand Up @@ -365,8 +366,11 @@ Run COMMAND with restrictions.\n\
-e, --stderr=FILE redirect COMMAND stderr output to FILE\n\
-s, --streamsize=SIZE truncate COMMAND stdout/stderr streams at SIZE kB\n\
-E, --environment preserve environment variables (default only PATH)\n\
-V, --variable add additional environment variables (in form KEY=VALUE;KEY2=VALUE2)\n\
-M, --outmeta=FILE write metadata (runtime, exitcode, etc.) to FILE\n");
-V, --variable add additional environment variables\n\
(in form KEY=VALUE;KEY2=VALUE2)\n\
-M, --outmeta=FILE write metadata (runtime, exitcode, etc.) to FILE\n\
-U, --runpipepid=PID process ID of runpipe to send SIGUSR1 signal when\n\
timelimit is reached\n");
printf("\
-v, --verbose display some extra warnings and information\n\
-q, --quiet suppress all warnings and verbose output\n\
Expand Down

0 comments on commit f871346

Please sign in to comment.