mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 20:19:46 +00:00
pep8
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user