You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-60Lines changed: 34 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,86 +80,59 @@ The language can either be set with the -l parameter or as a subcommand (`jplag
80
80
Language-specific arguments can be set when using the subcommand. A list of language-specific options can be obtained by requesting the help page of a subcommand (e.g., `jplag java —h`).
81
81
82
82
```
83
-
Parameter descriptions:
83
+
Parameter descriptions:
84
84
[root-dirs[,root-dirs...]...]
85
-
Root-directory with submissions to check for
86
-
plagiarism. If mode is set to VIEW, this parameter
87
-
can be used to specify a file to open. In that case
88
-
only a single file may be specified.
85
+
Root-directory with submissions to check for plagiarism. If mode is set to VIEW, this parameter can be used to specify a report file to open. In that
86
+
case only a single file may be specified.
89
87
-bc, --bc, --base-code=<baseCode>
90
-
Path to the base code directory (common framework used
91
-
in all submissions).
92
-
-l, --language=<language>
93
-
Select the language of the submissions (default: java).
94
-
See subcommands below.
95
-
-M, --mode=<{RUN, VIEW, RUN_AND_VIEW}>
96
-
The mode of JPlag. If VIEW is chosen, you can specify a
97
-
result file to display. One of: RUN, VIEW,
98
-
RUN_AND_VIEW (default: null)
99
-
-n, --shown-comparisons=<shownComparisons>
100
-
The maximum number of comparisons that will be shown in
101
-
the generated report, if set to -1 all comparisons
102
-
will be shown (default: 2500)
88
+
Path to the base code directory (common framework used in all submissions).
89
+
-l, --language=<language>
90
+
Select the language of the submissions (default: java). See subcommands below.
91
+
-M, --mode=<{RUN, VIEW, RUN_AND_VIEW, AUTO}>
92
+
The mode of JPlag. One of: RUN, VIEW, RUN_AND_VIEW, AUTO (default: null). If VIEW is chosen, you can optionally specify a path to an existing report.
93
+
-n, --shown-comparisons=<shownComparisons>
94
+
The maximum number of comparisons that will be shown in the generated report, if set to -1 all comparisons will be shown (default: 2500)
Copy file name to clipboardExpand all lines: cli/src/main/java/de/jplag/cli/CLI.java
+40-1Lines changed: 40 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
importjava.io.File;
4
4
importjava.io.FileNotFoundException;
5
5
importjava.io.IOException;
6
+
importjava.util.ArrayList;
7
+
importjava.util.List;
6
8
7
9
importorg.slf4j.ILoggerFactory;
8
10
importorg.slf4j.Logger;
@@ -32,6 +34,8 @@ public final class CLI {
32
34
privatestaticfinalStringOUTPUT_FILE_EXISTS = "The output file (also with suffixes e.g. results(1).zip) already exists. You can use --overwrite to overwrite the file.";
33
35
privatestaticfinalStringOUTPUT_FILE_NOT_WRITABLE = "The output file (%s) cannot be written to.";
Copy file name to clipboardExpand all lines: cli/src/main/java/de/jplag/cli/options/CliOptions.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ public class CliOptions implements Runnable {
55
55
56
56
@Option(names = {"-M",
57
57
"--mode"}, description = "The mode of JPlag. One of: ${COMPLETION-CANDIDATES} (default: ${DEFAULT_VALUE}). If VIEW is chosen, you can optionally specify a path to an existing report.")
58
-
publicJPlagModemode = JPlagMode.RUN_AND_VIEW;
58
+
publicJPlagModemode = JPlagMode.AUTO;
59
59
60
60
@Option(names = {"--normalize"}, description = "Activate the normalization of tokens. Supported for languages: Java, C++.")
0 commit comments