about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--020run.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/020run.cc b/020run.cc
index 7ece0dd2..4be4b30d 100644
--- a/020run.cc
+++ b/020run.cc
@@ -160,9 +160,11 @@ if (argc > 1) {
   // skip argv[0]
   ++argv;
   --argc;
-  // ignore argv past '--'; that's commandline args for 'main'
   while (argc > 0) {
+    // ignore argv past '--'; that's commandline args for 'main'
     if (string(*argv) == "--") break;
+    if (starts_with(*argv, "--"))
+      cerr << "treating " << *argv << " as a file rather than an option\n";
     load_file_or_directory(*argv);
     --argc;
     ++argv;