Skip to content

Commit b572c03

Browse files
committed
Adds epilog in help menu
1 parent 6306f43 commit b572c03

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

fortls/interface.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import json
55
import sys
66

7-
from fortls.version import __version__
8-
97

108
class SetAction(argparse.Action):
119
def __call__(self, parser, namespace, values, option_string=None):
@@ -22,10 +20,16 @@ def commandline_args(name: str = "fortls") -> argparse.ArgumentParser:
2220
"""
2321

2422
parser = argparse.ArgumentParser(
25-
description=f"fortls {__version__}",
23+
description="fortls - Fortran Language Server",
2624
prog=name,
2725
usage="%(prog)s [options] [debug options]",
2826
formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=60),
27+
epilog=(
28+
"All options starting with '--' can also be set in a configuration file, by"
29+
" default named '.fortls' (other names/paths can specified via -c or"
30+
" --config). For more details see our documentation:"
31+
" https://gnikit.github.io/fortls/options.html#available-options"
32+
),
2933
)
3034

3135
# General options ----------------------------------------------------------

0 commit comments

Comments
 (0)