WIP began work on CLI.

This commit is contained in:
Jonathan Bernard
2016-02-09 15:32:23 -06:00
parent 9fa9066a17
commit cf82525832
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,28 @@
package com.jdbernard.wdiwtlt.interfaces
public class CommandLineInterface {
public static final VERSION = "alpha"
public static final def DOC = """\
wdiwtlt v$VERSION
Usage:
wdiwtlt [options]
Options:
-L --library-root <root-dir>
The path to a local media library directory. Providing a local library
causes wdiwtlt to run in local mode.
Configuration:
"""
public static void main(String[] args) {
def opts = new Docopt(DOC).withVersion("wdiwtlt v$VERSION").parse(args)
println opts
}
}