Skip to content

Commit

Permalink
Make flags for gradient evaluation more consistent (#33)
Browse files Browse the repository at this point in the history
* make flags for gradient evaluation more consistent

Signed-off-by: Marcel Müller <marcel.mueller@thch.uni-bonn.de>

* Update app/main.f90

Co-authored-by: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com>

* make documentation and effective CLI consistent

Signed-off-by: Marcel Müller <marcel.mueller@thch.uni-bonn.de>

---------

Signed-off-by: Marcel Müller <marcel.mueller@thch.uni-bonn.de>
Co-authored-by: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com>
  • Loading branch information
marcelmbn and awvwgk authored Aug 9, 2024
1 parent 744deab commit f8b4141
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
16 changes: 8 additions & 8 deletions app/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ subroutine help(unit)
""

write(unit, '(2x, a, t25, a)') &
"-i, --input <format>", "Hint for the format of the input file", &
"-c, --charge <value>", "Set the molecular charge", &
"-g, --grad", "Evaluate molecular gradient and virial", &
"-j, --json", "Provide output in JSON format to the file 'multicharge.json'", &
"-v, --version", "Print program version and exit", &
"-h, --help", "Show this help message"
"-i, -input, --input <format>", "Hint for the format of the input file", &
"-c, -charge, --charge <value>", "Set the molecular charge", &
"-g, -grad, --grad", "Evaluate molecular gradient and virial", &
"-j, -json, --json", "Provide output in JSON format to the file 'multicharge.json'", &
"-v, -version, --version", "Print program version and exit", &
"-h, -help, --help", "Show this help message"

write(unit, '(a)')

Expand Down Expand Up @@ -216,9 +216,9 @@ subroutine get_arguments(input, input_format, grad, charge, json, error)
call fatal_error(error, "Invalid charge value")
exit
end if
case("-grad", "--grad")
case("-g", "-grad", "--grad")
grad = .true.
case("-j", "--json")
case("-j", "-json", "--json")
json = .true.
end select
end do
Expand Down
13 changes: 8 additions & 5 deletions man/multicharge.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ Electronegativity equilibration model for atomic partial charges.

== Options

*-i, --input* _format_::
*-i, -input, --input* _format_::
Hint for the format of the input file

*--json*::
*-c, -charge, --charge* _value_::
Provide the molecular charge

*-j, -json, --json*::
Provide output in JSON format to the file 'multicharge.json'

*--grad*::
*-g, -grad, --grad*::
Evaluate molecular gradient and virial

*--version*::
*-v, -version, --version*::
Print program version and exit

*--help*::
*-h, -help, --help*::
Show this help message

0 comments on commit f8b4141

Please sign in to comment.