1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:19:46 +00:00
This commit is contained in:
moyiz
2017-05-05 17:42:55 +03:00
parent 05b78ca5fe
commit befd1848ac
2 changed files with 5 additions and 4 deletions

View File

@@ -34,7 +34,8 @@ Usage:
[(-f | --force)] [--nodiff] [--dry]
dotdrop.py compare [--profile=<profile>] [--cfg=<path>]
dotdrop.py list [--cfg=<path>]
dotdrop.py import [(-l | --link)] [--cfg=<path>] [--profile=<profile>] [--dry] <paths>...
dotdrop.py import [--profile=<profile>] [--cfg=<path>]
[(-l | --link)] [--dry] <paths>...
dotdrop.py (-h | --help)
dotdrop.py (-v | --version)
@@ -43,7 +44,7 @@ Options:
--cfg=<path> Path to the config [default: %s/config.yaml].
--dry Dry run.
--nodiff Do not diff when installing [default: False].
-l --link Import the file and add a link to it [default: False].
-l --link Import and link [default: False].
-f --force Do not warn if exists [default: False].
-v --version Show version.
-h --help Show this screen.

View File

@@ -41,11 +41,11 @@ class Installer:
self.log.sub('ignoring "%s", link exists' % dst)
return []
if self.dry:
self.log.dry('would remove %s and link it to %s'\
self.log.dry('would remove %s and link it to %s'
% (dst, src))
return []
if self.safe and \
not self.log.ask('Remove "%s" for link creation?' % dst):
not self.log.ask('Remove "%s" for link creation?' % dst):
self.log.warn('ignoring "%s", link was not created' % dst)
return []
try: