mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 16:49:17 +00:00
pep8
This commit is contained in:
@@ -34,7 +34,8 @@ Usage:
|
|||||||
[(-f | --force)] [--nodiff] [--dry]
|
[(-f | --force)] [--nodiff] [--dry]
|
||||||
dotdrop.py compare [--profile=<profile>] [--cfg=<path>]
|
dotdrop.py compare [--profile=<profile>] [--cfg=<path>]
|
||||||
dotdrop.py list [--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 (-h | --help)
|
||||||
dotdrop.py (-v | --version)
|
dotdrop.py (-v | --version)
|
||||||
|
|
||||||
@@ -43,7 +44,7 @@ Options:
|
|||||||
--cfg=<path> Path to the config [default: %s/config.yaml].
|
--cfg=<path> Path to the config [default: %s/config.yaml].
|
||||||
--dry Dry run.
|
--dry Dry run.
|
||||||
--nodiff Do not diff when installing [default: False].
|
--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].
|
-f --force Do not warn if exists [default: False].
|
||||||
-v --version Show version.
|
-v --version Show version.
|
||||||
-h --help Show this screen.
|
-h --help Show this screen.
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ class Installer:
|
|||||||
self.log.sub('ignoring "%s", link exists' % dst)
|
self.log.sub('ignoring "%s", link exists' % dst)
|
||||||
return []
|
return []
|
||||||
if self.dry:
|
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))
|
% (dst, src))
|
||||||
return []
|
return []
|
||||||
if self.safe and \
|
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)
|
self.log.warn('ignoring "%s", link was not created' % dst)
|
||||||
return []
|
return []
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user