+
+ private static ReceiveConfig getReceiveConfig(final Namespace ns) {
+ final var ignoreAttachments = Boolean.TRUE.equals(ns.getBoolean("ignore-attachments"));
+ final var ignoreStories = Boolean.TRUE.equals(ns.getBoolean("ignore-stories"));
+ final var sendReadReceipts = Boolean.TRUE.equals(ns.getBoolean("send-read-receipts"));
+ return new ReceiveConfig(ignoreAttachments, ignoreStories, sendReadReceipts);
+ }
+
+ private static Supplier<String> getLineSupplier() {
+ return IOUtils.getLineSupplier(new InputStreamReader(System.in, IOUtils.getConsoleCharset()));
+ }