1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 10:48:00 +00:00

implement link_install_default for #110

This commit is contained in:
deadc0de6
2019-03-27 13:33:01 +01:00
parent 652d556be1
commit 509a7c1848
7 changed files with 195 additions and 19 deletions

View File

@@ -178,13 +178,13 @@ class Options(AttrMonitor):
self.safe = not self.args['--force']
self.link = LinkTypes.NOLINK
if self.link_by_default:
self.link = LinkTypes.PARENTS
self.link = LinkTypes.PARENT
if self.args['--inv-link']:
# Only invert link type from NOLINK to PARENTS and vice-versa
# Only invert link type from NOLINK to PARENT and vice-versa
if self.link == LinkTypes.NOLINK:
self.link = LinkTypes.PARENTS
elif self.link == LinkTypes.PARENTS:
self.link = LinkTypes.PARENT
elif self.link == LinkTypes.PARENT:
self.link = LinkTypes.NOLINK
# "listfiles" specifics