From de533f0437d76f8a9ece22b27ad951599fd23bc0 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 6 Jan 2018 15:47:57 -0800 Subject: [PATCH] Remove --all option - empty param list instead --- dvc/cli.py | 6 ------ dvc/command/fsck.py | 10 +++------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/dvc/cli.py b/dvc/cli.py index a64b8fd53..cea296125 100644 --- a/dvc/cli.py +++ b/dvc/cli.py @@ -423,12 +423,6 @@ def parse_args(argv=None): 'targets', nargs='*', help='Data files to check') - fsck_parser.add_argument( - '-a', - '--all', - action='store_true', - default=False, - help='Check all data files') fsck_parser.add_argument( '-p', '--physical', diff --git a/dvc/command/fsck.py b/dvc/command/fsck.py index ec4d98af9..88374217f 100644 --- a/dvc/command/fsck.py +++ b/dvc/command/fsck.py @@ -6,18 +6,14 @@ from dvc.data_cloud import file_md5 class CmdFsck(CmdBase): def run(self): - if not self.args.targets and not self.args.all: - self.project.logger.error(u'Data files are not specified') - return 1 - directions = self.project.all_directions() files_and_stages = self.directions_by_datafile(directions) - if self.args.all: - dvc_files = files_and_stages.keys() - else: + if self.args.targets: dvc_files = [os.path.relpath(os.path.abspath(f), self.project.root_dir) for f in self.args.targets] + else: + dvc_files = files_and_stages.keys() caches = self.project.cache.find_cache(dvc_files)