Skip to content

Commit 1e2e752

Browse files
committed
parser 위치 변경
1 parent d848b91 commit 1e2e752

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/Mail.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
public class Mail {
99
public static void main(String[] args) throws MessagingException, ParseException {
10-
// --host=mail.test.com --port=25 [email protected] [email protected]
11-
CommandLineParser parser = new DefaultParser();
10+
// ex) --host=mail.test.com --port=25 [email protected] [email protected]
1211

1312
Options options = new Options();
13+
1414
options.addOption(Option.builder().longOpt("host")
1515
.desc("smtp server host")
1616
.hasArg()
@@ -31,6 +31,8 @@ public static void main(String[] args) throws MessagingException, ParseException
3131
.hasArg()
3232
.build());
3333

34+
CommandLineParser parser = new DefaultParser();
35+
3436
CommandLine line = parser.parse(options, args);
3537

3638
String host = line.getOptionValue("host");

0 commit comments

Comments
 (0)