aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormilancurcic <caomaco@gmail.com>2020-07-24 12:47:44 -0400
committermilancurcic <caomaco@gmail.com>2020-07-24 12:47:44 -0400
commitbe4d958403d8a379b8360f5f5a7d3f9e34e1aaec (patch)
treef48c5186bca4bc7278f81032f4a51b561f81ffef
parent81bd372d35456008ac367c0a9502b9f7e9616bc3 (diff)
downloadfpm-be4d958403d8a379b8360f5f5a7d3f9e34e1aaec.tar.gz
fpm-be4d958403d8a379b8360f5f5a7d3f9e34e1aaec.zip
revert to erroring on unknown command to be more consistent with Cargo UI
-rw-r--r--fpm/app/main.f904
1 files 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"