about summary refs log tree commit diff stats
path: root/020run.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-06 10:54:47 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-06 10:54:47 -0700
commit6d6c37feeb72c7ab13276cec7df326f7d8cd1712 (patch)
tree789a3315e022beb5c44101e11c38f111e238d40e /020run.cc
parent55479bc29dfc7148e38d8c24b072e3588739f18e (diff)
downloadmu-6d6c37feeb72c7ab13276cec7df326f7d8cd1712.tar.gz
3446
Better warning if I try:

  mu test --test-only-app sandbox

instead of:

  mu --test-only-app test sandbox
Diffstat (limited to '020run.cc')
-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;