Skip to content

Commit 8f36106

Browse files
authored
Merge pull request #139 from rethinkdb/fix-dump-command
Fix dump command
2 parents 916895e + 040f405 commit 8f36106

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[pytest]
22
python_files = test_*.py
3+
markers =
4+
unit: Run unit tests
5+
integration: Run integration tests
6+
asyncio: Run asyncio relates tests

rethinkdb/_dump.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Copyright 2010-2016 RethinkDB, all rights reserved.
1919

2020

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

2323
from __future__ import print_function
2424

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

9797
# Check validity of arguments
98-
9998
if len(args) != 0:
10099
raise parser.error("No positional arguments supported. Unrecognized option(s): %s" % args)
101100

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

142141

143142
def main(argv=None, prog=None):
144-
options = parse_options(argv or sys.argv[2:], prog=prog)
143+
options = parse_options(argv or sys.argv[1:], prog=prog)
145144
try:
146145
if not options.quiet:
147146
# Print a warning about the capabilities of dump, so no one is confused (hopefully)

0 commit comments

Comments
 (0)