Browse Source

minor:docs

ov7a 9 years ago
parent
commit
691fffce18
1 changed files with 4 additions and 5 deletions
  1. 4 5
      jplag/src/main/java/jplag/options/Options.java

+ 4 - 5
jplag/src/main/java/jplag/options/Options.java

@@ -132,7 +132,7 @@ public abstract class Options {
 
 	public jplag.Language language;
 
-	//compare two files options
+	//compare list of files options
 	public boolean fileListMode = false;
 
 	public List<String> fileList = new ArrayList<String>();
@@ -189,9 +189,8 @@ public abstract class Options {
 	public static void usage() {
 		System.out.print(Program.name_long
 						+ ", Copyright (c) 2004-2017 KIT - IPD Tichy, Guido Malpohl, and others.\n"
-						+ "Usage: JPlag [ options ] <root-dir> or JPlag [ options ] <file1> <file2>\n"
-						+ " <root-dir>        The root-directory that contains all submissions. \n"
-						+ "                   Mandatory unless -c flag is provided.\n\n"
+						+ "Usage: JPlag [ options ] <root-dir> [-c file1 file2 ...]\n"
+						+ " <root-dir>        The root-directory that contains all submissions.\n\n"
 						+ "options are:\n"
 						+ " -v[qlpd]        (Verbose)\n"
 						+ "                 q: (Quiet) no output\n"
@@ -213,7 +212,7 @@ public abstract class Options {
 						+ " -r <dir>        (Result) Name of directory in which the web pages will be\n"
 						+ "                 stored (default: result)\n"
 						+ " -bc <dir>       Name of the directory which contains the basecode (common framework)\n"
-						+ " -c [files]      Compare a list of files. \n"
+						+ " -c [files]      Compare a list of files. Should be the last one.\n"
 						+ " -l <language>   (Language) Supported Languages:\n                 ");
 		for (int i = 0; i < languages.length - 2; i += 2)
 			System.out.print(languages[i] + (i == 0 ? " (default), " : ", "));