From dcda643934c624abc2c30d13b5b1d5a6a2994f85 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 6 May 2019 11:35:24 +0100 Subject: [PATCH] [parseArgs] bucket and source are required --- src/main/scala/net/kemitix/s3thorp/ParseArgs.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/scala/net/kemitix/s3thorp/ParseArgs.scala b/src/main/scala/net/kemitix/s3thorp/ParseArgs.scala index 58c8394..447a853 100644 --- a/src/main/scala/net/kemitix/s3thorp/ParseArgs.scala +++ b/src/main/scala/net/kemitix/s3thorp/ParseArgs.scala @@ -14,9 +14,11 @@ object ParseArgs { head("s3thorp", "0.1.0"), opt[String]('s', "source") .action((str, c) => c.copy(source = str)) + .required() .text("Source directory to sync to S3"), opt[String]('b', "bucket") .action((str, c) => c.copy(bucket = str)) + .required() .text("S3 bucket name"), opt[String]('p', "prefix") .action((str, c) => c.copy(prefix = str))