Skip to content

Commit b24b7b1

Browse files
committed
readme: adding help for the judged.php
1 parent 7e492db commit b24b7b1

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

readme.adoc

+18-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// tip bulb definition
22
ifdef::env-github[]
3-
:tip-caption: :bulb:
3+
:tip-caption: 💡
4+
:warn-caption: ⚠️
45
endif::[]
56
//
67

@@ -20,7 +21,7 @@ endif::[]
2021
:moodle_url: https://download.moodle.org/releases/latest/
2122
//
2223

23-
[TIP]
24+
[WARN]
2425
This plugin is in BETA version and NOT recommended to use in production websites
2526

2627
*readme* varies in respect to version (i.e., branch), there are https://github.com/hit-moodle/moodle-local_onlinejudge/branches[two available ones].
@@ -140,7 +141,7 @@ Make sure the file named `sand` is _executable_, and has the following context:
140141

141142

142143

143-
== Sphere Engine
144+
=== Sphere Engine
144145

145146
In order to start using sphere engine, navigate to the following path:
146147

@@ -154,7 +155,7 @@ composer install
154155

155156
[TIP]
156157
Sphere Engine accepts only one file. So, ensure that the "Maximum number of
157-
uploaded files" under "Submission types" is equal to `1` when you create an
158+
uploaded files" under "Submission types" is set to `1` when you create an
158159
assignment.
159160

160161
== Supported Platforms
@@ -244,6 +245,19 @@ Judge` button which allows you to only rejudge that submission.
244245

245246
The judge daemon, which exists in https://github.com/hit-moodle/moodle-local_onlinejudge/blob/master/cli/judged.php[`cli/judged.php`], has several helpful options for debugging purposes. Use `--help` argument for more information.
246247

248+
```
249+
Judge all unjudged tasks.
250+
251+
Options:
252+
-h, --help Print out this help
253+
-n, --nodaemon Do not run as daemon (Linux only)
254+
-o, --once Exit while no more to judge
255+
-v, --verbose Verbose output
256+
257+
Example:
258+
$sudo -u www-data /usr/bin/php local/onlinejudge/cli/judged.php
259+
```
260+
247261
= Links
248262

249263
[cols=2*]

0 commit comments

Comments
 (0)