Skip to content

Commit 3b5efe5

Browse files
committed
update CLI help
1 parent 523c670 commit 3b5efe5

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

src/fpm/cmd/new.f90

+17-8
Original file line numberDiff line numberDiff line change
@@ -310,19 +310,28 @@ subroutine cmd_new(settings)
310310
&' # modules. For example, src/a/b/c/d.f90 must define a module called a_b_c_d. ',&
311311
&' # Again, this is not enforced but may be required in future releases. ',&
312312
&' ',&
313-
&' # Set `shared=true` to build dynamic libraries (.so/.dylib/.dll) ',&
314-
&' # instead of a static archive (.a). When enabled, each package in the ',&
315-
&' # dependency graph will be compiled to its own shared library. ',&
313+
&' ### Library type ',&
314+
&' # Set `type = "shared"` to build dynamic libraries (.so/.dylib/.dll) ',&
315+
&' # instead of a static archive. You can also set `type = "static"` to ',&
316+
&' # generate per-package archives, or use `type = "monolithic"` (default) ',&
317+
&' # to bundle all sources and dependencies into a single archive. ',&
316318
&' # ',&
317-
&' # This is useful for plugin systems, dynamic linking, or when building ',&
318-
&' # language bindings. ',&
319+
&' # Supported types: ',&
319320
&' # ',&
320-
&' # Note: shared libraries are not installed unless `[install] library=true` ',&
321+
&' # + "monolithic": Single archive with used sources and dependencies. ',&
322+
&' # + "static": One full archive per package (for external integration). ',&
323+
&' # + "shared": One shared library per package, for dynamic linking. ',&
324+
&' # ',&
325+
&' # Shared libraries are useful for plugin systems, dynamic linking, or ',&
326+
&' # language bindings. Static per-package archives may aid external reuse. ',&
327+
&' # ',&
328+
&' # Note: library files are not installed unless `[install] library=true` ',&
321329
&' # is also enabled. ',&
322330
&' # ',&
323331
&' # Example: ',&
324-
&'shared = false ',&
325-
332+
&' ',&
333+
&'type = "shared" ',&
334+
&' ',&
326335
&'']
327336
endif
328337
! create placeholder module src/bname.f90

0 commit comments

Comments
 (0)