changes
This commit is contained in:
@@ -1,5 +1,24 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
"""Naval Fate.
|
||||
|
||||
Usage:
|
||||
{progname} ship new <name>...
|
||||
{progname} ship <name> move <x> <y> [--speed=<kn>]
|
||||
{progname} ship shoot <x> <y>
|
||||
{progname} mine (set|remove) <x> <y> [--moored | --drifting]
|
||||
{progname} (-h | --help)
|
||||
{progname} --version
|
||||
|
||||
Options:
|
||||
-h --help Show this screen.
|
||||
--version Show version.
|
||||
--speed=<kn> Speed in knots [default: 10].
|
||||
--moored Moored (anchored) mine.
|
||||
--drifting Drifting mine.
|
||||
|
||||
""".format(progname="install_files")
|
||||
import docopt
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
@@ -41,5 +60,5 @@ def install_vim(pdotfiles, force=False):
|
||||
pvundle.as_posix()])
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) == 2:
|
||||
install_vim(Path(sys.argv[1]))
|
||||
arguments = docopt(__doc__, version='0.1')
|
||||
print(arguments)
|
||||
|
||||
Reference in New Issue
Block a user