1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-11 07:19:16 +00:00

fix --force-actions in tests

This commit is contained in:
deadc0de6
2019-06-02 13:53:00 +02:00
parent 58dd284118
commit 44db88ce74
2 changed files with 3 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ Options:
-D --showdiff Show a diff before overwriting. -D --showdiff Show a diff before overwriting.
-P --show-patch Provide a one-liner to manually patch template. -P --show-patch Provide a one-liner to manually patch template.
-f --force Do not ask user confirmation for anything. -f --force Do not ask user confirmation for anything.
-a --force-action Execute all actions even if no dotfile is installed. -a --force-actions Execute all actions even if no dotfile is installed.
-k --key Treat <path> as a dotfile key. -k --key Treat <path> as a dotfile key.
-V --verbose Be verbose. -V --verbose Be verbose.
-d --dry Dry run. -d --dry Dry run.
@@ -211,7 +211,7 @@ class Options(AttrMonitor):
# "listfiles" specifics # "listfiles" specifics
self.listfiles_templateonly = self.args['--template'] self.listfiles_templateonly = self.args['--template']
# "install" specifics # "install" specifics
self.install_force_action = self.args['--force-action'] self.install_force_action = self.args['--force-actions']
self.install_temporary = self.args['--temp'] self.install_temporary = self.args['--temp']
self.install_keys = self.args['<key>'] self.install_keys = self.args['<key>']
self.install_diff = not self.args['--nodiff'] self.install_diff = not self.args['--nodiff']

View File

@@ -127,6 +127,7 @@ def _fake_args():
args['--key'] = False args['--key'] = False
args['--ignore'] = [] args['--ignore'] = []
args['--show-patch'] = False args['--show-patch'] = False
args['--force-actions'] = False
# cmds # cmds
args['list'] = False args['list'] = False
args['listfiles'] = False args['listfiles'] = False