Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wrote temporal codes

  • Loading branch information...
commit 423199d3ca83e64be396f0af326fcc7a434a368d 1 parent 429fe9e
@cocoatomo authored
View
21 phoneutria-tools/src/main/groovy/net/elliptium/groovy/s3/phcp.groovy
@@ -1,9 +1,24 @@
-#!/usr/bin/env groovy
-
package net.elliptium.groovy.s3
import org.slf4j.LoggerFactory
+import org.apache.commons.cli.Options
+import org.apache.commons.cli.OptionBuilder
+import org.apache.commons.cli.BasicParser
+import org.apache.commons.cli.HelpFormatter
def LOG = LoggerFactory.getLogger(phcp.class)
-LOG.info('hello world')
+println LOG.class
+
+LOG.info('hello world')
+
+def options = new Options()
+options
+.addOption(OptionBuilder.create('f'))
+.addOption(OptionBuilder.create('r'))
+
+def commandLine = new BasicParser().parse(options, args)
+
+new HelpFormatter().printHelp('syntax', options)
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.