Skip to content

Commit

Permalink
Fix Dump command
Browse files Browse the repository at this point in the history
  • Loading branch information
gabor-boros committed Sep 3, 2019
1 parent 9210c80 commit 040f405
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit 040f405

Please sign in to comment.