Skip to content

Fix dump command #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[pytest]
python_files = test_*.py
markers =
unit: Run unit tests
integration: Run integration tests
asyncio: Run asyncio relates tests
5 changes: 2 additions & 3 deletions rethinkdb/_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Copyright 2010-2016 RethinkDB, all rights reserved.


'''`rethinkdb dump` creates an archive of data from a RethinkDB cluster'''
'''`rethinkdb-dump` creates an archive of data from a RethinkDB cluster'''

from __future__ import print_function

Expand Down Expand Up @@ -95,7 +95,6 @@ def parse_options(argv, prog=None):
options, args = parser.parse_args(argv)

# Check validity of arguments

if len(args) != 0:
raise parser.error("No positional arguments supported. Unrecognized option(s): %s" % args)

Expand Down Expand Up @@ -141,7 +140,7 @@ def parse_options(argv, prog=None):


def main(argv=None, prog=None):
options = parse_options(argv or sys.argv[2:], prog=prog)
options = parse_options(argv or sys.argv[1:], prog=prog)
try:
if not options.quiet:
# Print a warning about the capabilities of dump, so no one is confused (hopefully)
Expand Down