1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 22:39:43 +00:00

refactor command "list" to "profiles"

This commit is contained in:
deadc0de6
2019-11-27 19:21:18 +01:00
parent 8844084999
commit 775057a77f
3 changed files with 5 additions and 5 deletions

View File

@@ -604,10 +604,10 @@ def main():
ret = True
try:
if o.cmd_list:
if o.cmd_profiles:
# list existing profiles
if o.debug:
LOG.dbg('running cmd: list')
LOG.dbg('running cmd: profiles')
cmd_list_profiles(o)
elif o.cmd_files:

View File

@@ -61,7 +61,7 @@ Usage:
dotdrop remove [-Vbfdk] [-c <path>] [-p <profile>] [<path>...]
dotdrop files [-VbT] [-c <path>] [-p <profile>]
dotdrop detail [-Vb] [-c <path>] [-p <profile>] [<key>...]
dotdrop list [-Vb] [-c <path>]
dotdrop profiles [-Vb] [-c <path>]
dotdrop --help
dotdrop --version
@@ -189,7 +189,7 @@ class Options(AttrMonitor):
def _apply_args(self):
"""apply cli args as attribute"""
# the commands
self.cmd_list = self.args['list']
self.cmd_profiles = self.args['profiles']
self.cmd_files = self.args['files']
self.cmd_install = self.args['install']
self.cmd_compare = self.args['compare']

View File

@@ -129,7 +129,7 @@ def _fake_args():
args['--show-patch'] = False
args['--force-actions'] = False
# cmds
args['list'] = False
args['profiles'] = False
args['files'] = False
args['install'] = False
args['compare'] = False