From be4d958403d8a379b8360f5f5a7d3f9e34e1aaec Mon Sep 17 00:00:00 2001 From: milancurcic Date: Fri, 24 Jul 2020 12:47:44 -0400 Subject: revert to erroring on unknown command to be more consistent with Cargo UI --- fpm/app/main.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fpm/app/main.f90 b/fpm/app/main.f90 index 47d7cb1..55c22fd 100644 --- a/fpm/app/main.f90 +++ b/fpm/app/main.f90 @@ -17,8 +17,8 @@ else if (command_argument_count() == 1) then case("run") call cmd_run() case default - print *, "Unknown command: " // trim(cmdarg) - call print_help() + print *, "fpm error: No such command " // trim(cmdarg) + error stop end select else print *, "Too many arguments" -- cgit v1.2.3