From 306bb78c61289423fb97f901185d63a289e95d17 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 25 Oct 2020 21:38:21 +0100 Subject: [PATCH] Add CLI usage details --- src/main/java/org/RI/P1/AnalyzeDirectory.java | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/RI/P1/AnalyzeDirectory.java b/src/main/java/org/RI/P1/AnalyzeDirectory.java index f11e598..ffab465 100644 --- a/src/main/java/org/RI/P1/AnalyzeDirectory.java +++ b/src/main/java/org/RI/P1/AnalyzeDirectory.java @@ -19,14 +19,34 @@ public class AnalyzeDirectory { .collect(Collectors.toList()); } - public static void main(String[] args) throws IOException, TikaException, SAXException { - String directory = args[0]; - readFiles(directory); + private static void usage() { + System.out.println("Usage: AnalyzeDirectory