Skip to content

Commit

Permalink
command: remove default property from "targets" argparse code in
Browse files Browse the repository at this point in the history
data sync and `commit` commands,
since `None` is the default value for the removed `default` property,
see https://docs.python.org/dev/library/argparse.html#default
  • Loading branch information
jorgeorpinel committed Jun 27, 2019
1 parent 936f941 commit a927a50
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion dvc/command/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def add_parser(subparsers, parent_parser):
commit_parser.add_argument(
"targets",
nargs="*",
default=None,
help="DVC-files to commit. Optional."
"(Finds all DVC-files in the workspace by default.)",
)
Expand Down
1 change: 0 additions & 1 deletion dvc/command/data_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def shared_parent_parser():
shared_parent_parser.add_argument(
"targets",
nargs="*",
default=None,
help="Limit command scope to these DVC-files. "
"Using -R, directories to search DVC-files in can also be given.",
)
Expand Down

0 comments on commit a927a50

Please sign in to comment.