Skip to content

Commit 040f405

Browse files
committed
Fix Dump command
1 parent 9210c80 commit 040f405

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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)