From ad1772aa5bf4430514fd3634d3128b971faa592d Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 23 Dec 2017 20:48:48 +0100 Subject: [PATCH] improve usage and error message --- dotdrop/dotdrop.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index dbe0596..ba7ed18 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -17,17 +17,17 @@ except: Dotdrop has been updated to be included in pypi and 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: $ git submodule update --init --recursive And then re-run the bootstrap script to update \"dotdrop.sh\": $ ./dotdrop/bootstrap.sh -Instead of calling dotdrop directly like this: - $ python3 dotdrop/dotdrop/dotdrop.py ... -Call it like this: - $ PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop ... +Otherwise you can simply install dotdrop from pypi: + $ sudo pip3 install dotdrop -See TODO +see https://github.com/deadc0de6/dotdrop#migrate-from-submodule ''' print(errmsg) sys.exit(1) @@ -52,13 +52,13 @@ USAGE = """ %s Usage: - dotdrop.py install [-fndVc ] [--profile=] - dotdrop.py compare [-Vc ] [--profile=] [--files=] - dotdrop.py import [-ldVc ] [--profile=] ... - dotdrop.py listfiles [-Vc ] [--profile=] - dotdrop.py list [-Vc ] - dotdrop.py --help - dotdrop.py --version + dotdrop install [-fndVc ] [--profile=] + dotdrop compare [-Vc ] [--profile=] [--files=] + dotdrop import [-ldVc ] [--profile=] ... + dotdrop listfiles [-Vc ] [--profile=] + dotdrop list [-Vc ] + dotdrop --help + dotdrop --version Options: --profile= Specify the profile to use [default: %s].