Skip to content

Commit

Permalink
Fixed a bug and treat unknown options
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagnin committed Nov 1, 2021
1 parent a9b582b commit 24ba8ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/taptempo.f90
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ subroutine manage_command_line
if (nb == 0) return

i = 0
do while (i <= nb)
do while (i < nb)
i = i + 1
call get_command_argument(i, value=args)

Expand Down Expand Up @@ -86,6 +86,8 @@ subroutine manage_command_line
case("-v", "--version")
call print_version()
stop
case default
print '(2A)', "Unknown option ignored: ", trim(args)
end select
end do
end subroutine manage_command_line
Expand Down

0 comments on commit 24ba8ca

Please sign in to comment.