Skip to content

Commit

Permalink
Merge pull request #139 from rethinkdb/fix-dump-command
Browse files Browse the repository at this point in the history
Fix dump command
  • Loading branch information
gabor-boros committed Sep 4, 2019
2 parents 916895e + 040f405 commit 8f36106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pytest.ini
@@ -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
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

0 comments on commit 8f36106

Please sign in to comment.