Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions src/main/java/org/spdx/tools/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,22 @@ static int run(String[] args) {
}

private static void usage() {
System.out.println("Usage: java -jar spdx-tools-jar-with-dependencies.jar <function> <parameters> \n"
+ "function parameter example \n"
+ "------------------------------------------------------------------------------------------------------------------- \n"
+ "Convert inputFile outputFile [fromType] [toType] Examples/SPDXTagExample.tag TagToSpreadsheet.xls \n"
+ "SPDXViewer inputFile TestFiles/SPDXRdfExample.rdf \n"
+ "Verify inputFile [type] TestFiles/SPDXRdfExample.rdf \n"
+ "CompareDocs output.xlsx doc1 doc2 ... docN \n"
System.out.println("Usage: java -jar spdx-tools-jar-with-dependencies.jar <function> <parameters>\n"
+ "function parameters\n"
+ "-------------------------------------------------------------------------------\n"
+ "SPDXViewer inputFile\n"
+ "Verify inputFile [type]\n"
+ "Convert inputFile outputFile [fromType] [toType] [--toVersion version]\n"
+ "CompareDocs output.xlsx input1 input2 [input3 ... inputN]\n"
+ "GenerateVerificationCode sourceDirectory\n"
+ "MatchingStandardLicenses licenseTextFile\n"
+ "Version\n"
+ "MatchingStandardLicenses licenseTextFile");
+ "-------------------------------------------------------------------------------\n"
+ "Example:\n"
+ "java -jar spdx-tools..jar Convert example.spdx.json example.spdx\n"
+ "java -jar spdx-tools..jar Convert ex-2.2.spdx.json ex-2.3.spdx --toVersion 2.3\n"
+ "java -jar spdx-tools..jar CompareDocs output.xlsx ex1.spdx ex2.spdx.rdf\n"
);
}

}
Loading
Loading