1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-12 08:58:29 +00:00

improve usage and error message

This commit is contained in:
deadc0de6
2017-12-23 20:48:48 +01:00
parent 38111a034b
commit ad1772aa5b

View File

@@ -17,17 +17,17 @@ except:
Dotdrop has been updated to be included in pypi and Dotdrop has been updated to be included in pypi and
the way it needs to be called has slightly changed. the way it needs to be called has slightly changed.
If you want to keep it as a submodule, simply do the following:
First get the latest version of dotdrop: First get the latest version of dotdrop:
$ git submodule update --init --recursive $ git submodule update --init --recursive
And then re-run the bootstrap script to update \"dotdrop.sh\": And then re-run the bootstrap script to update \"dotdrop.sh\":
$ ./dotdrop/bootstrap.sh $ ./dotdrop/bootstrap.sh
Instead of calling dotdrop directly like this: Otherwise you can simply install dotdrop from pypi:
$ python3 dotdrop/dotdrop/dotdrop.py ... $ sudo pip3 install dotdrop
Call it like this:
$ PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop ...
See TODO see https://github.com/deadc0de6/dotdrop#migrate-from-submodule
''' '''
print(errmsg) print(errmsg)
sys.exit(1) sys.exit(1)
@@ -52,13 +52,13 @@ USAGE = """
%s %s
Usage: Usage:
dotdrop.py install [-fndVc <path>] [--profile=<profile>] dotdrop install [-fndVc <path>] [--profile=<profile>]
dotdrop.py compare [-Vc <path>] [--profile=<profile>] [--files=<files>] dotdrop compare [-Vc <path>] [--profile=<profile>] [--files=<files>]
dotdrop.py import [-ldVc <path>] [--profile=<profile>] <paths>... dotdrop import [-ldVc <path>] [--profile=<profile>] <paths>...
dotdrop.py listfiles [-Vc <path>] [--profile=<profile>] dotdrop listfiles [-Vc <path>] [--profile=<profile>]
dotdrop.py list [-Vc <path>] dotdrop list [-Vc <path>]
dotdrop.py --help dotdrop --help
dotdrop.py --version dotdrop --version
Options: Options:
--profile=<profile> Specify the profile to use [default: %s]. --profile=<profile> Specify the profile to use [default: %s].