Skip to content

Commit

Permalink
Update README and documentation with new options
Browse files Browse the repository at this point in the history
  • Loading branch information
hansec committed Oct 1, 2020
1 parent 695edec commit 022cd1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ The following global settings can be used when launching the language server.
* ``--hover_signature`` Show signature information in hover for argument (also enables '--variable_hover')
* ``--preserve_keyword_order`` Display variable keywords information in original order (default: sort to consistent ordering)
* ``--enable_code_actions`` Enable experimental code actions (default: false)
* ``--max_line_length`` Maximum line length (default: disabled)
* ``--max_comment_line_length`` Maximum comment line length (default: disabled)
* ``--disable_diagnostics`` Disable code diagnostics (default: false)
* ``--max_line_length`` Maximum line length (default: none)
* ``--max_comment_line_length`` Maximum comment line length (default: none)
* ``--debug_log`` Write debug information to ``root_dir/fortls_debug.log`` (requires a specified ``root_dir`` during initialization)

Debug settings:
Expand Down Expand Up @@ -124,6 +125,9 @@ in the ``root_dir`` directory.

* ``lowercase_intrinsics`` Use lowercase for intrinsics and keywords in autocomplete requests (default: false)
* ``debug_log`` Write debug information to ``root_dir/fortls_debug.log`` (default: false)
* ``disable_diagnostics`` Disable diagnostics for this project only (default: false)
* ``max_line_length`` Maximum line length (default: none)
* ``max_comment_line_length`` Maximum comment line length (default: none)

Setup source file search paths:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
4 changes: 2 additions & 2 deletions fortls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def main():
)
parser.add_argument(
'--max_line_length', type=int, default=-1,
help="Maximum line length (default: disabled)"
help="Maximum line length (default: none)"
)
parser.add_argument(
'--max_comment_line_length', type=int, default=-1,
help="Maximum comment line length (default: disabled)"
help="Maximum comment line length (default: none)"
)
parser.add_argument(
'--disable_diagnostics', action="store_true",
Expand Down

0 comments on commit 022cd1f

Please sign in to comment.