summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/__main__.py b/ranger/__main__.py
index 9c97e190..23491c28 100644
--- a/ranger/__main__.py
+++ b/ranger/__main__.py
@@ -111,7 +111,7 @@ def main():
 
 	# Initialize objects
 	if arg.targets:
-		target = arg.target[0]
+		target = arg.targets[0]
 		if not os.access(target, os.F_OK):
 			print("File or directory doesn't exist: %s" % target)
 			sys.exit(1)