From 44392941af1ac03238494aade262753aaec6ebb7 Mon Sep 17 00:00:00 2001 From: nik123 Date: Sun, 16 Aug 2020 01:41:42 +0700 Subject: [PATCH] ui: '-j' option now mentions docs (#4382) * ui: '-j' option now mentions docs * ui: copied '-j' default value desc. from cmd ref --- dvc/command/data_sync.py | 6 +++++- dvc/command/gc.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dvc/command/data_sync.py b/dvc/command/data_sync.py index 5b931177e..a6f810c83 100644 --- a/dvc/command/data_sync.py +++ b/dvc/command/data_sync.py @@ -97,7 +97,11 @@ def shared_parent_parser(): "-j", "--jobs", type=int, - help="Number of jobs to run simultaneously.", + help=( + "Number of jobs to run simultaneously. " + "The default value is 4 * cpu_count(). " + "For SSH remotes, the default is 4. " + ), metavar="", ) parent_parser.add_argument( diff --git a/dvc/command/gc.py b/dvc/command/gc.py index b1fa32fdb..2948da26b 100644 --- a/dvc/command/gc.py +++ b/dvc/command/gc.py @@ -123,7 +123,11 @@ def add_parser(subparsers, parent_parser): "-j", "--jobs", type=int, - help="Number of jobs to run simultaneously.", + help=( + "Number of jobs to run simultaneously. " + "The default value is 4 * cpu_count(). " + "For SSH remotes, the default is 4. " + ), metavar="", ) gc_parser.add_argument(