Skip to content

Commit fea59a2

Browse files
committed
mention --list option on main command
1 parent 814302f commit fea59a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fpm/src/fpm_command_line.f90

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ end function is_fortran_name
287287

288288
subroutine set_help()
289289
help_list_nodash=[character(len=80) :: &
290-
'USAGE: fpm [ SUBCOMMAND [SUBCOMMAND_OPTIONS] ] | [--help|--version] ', &
290+
'USAGE: fpm [ SUBCOMMAND [SUBCOMMAND_OPTIONS] ]|[--list|--help|--version]', &
291291
' where SUBCOMMAND is commonly new|build|run|test ', &
292292
' ', &
293293
' subcommand may be one of ', &
@@ -320,7 +320,7 @@ subroutine set_help()
320320
'SYNOPSIS ', &
321321
' fpm SUBCOMMAND [SUBCOMMAND_OPTIONS] ', &
322322
' ', &
323-
' fpm --help|--version ', &
323+
' fpm --help|--version|--list ', &
324324
' ', &
325325
'DESCRIPTION ', &
326326
' fpm(1) is a package manager that helps you create Fortran projects ', &
@@ -360,7 +360,8 @@ subroutine set_help()
360360
' in "build/*_debug/". When this flag is present build ', &
361361
' output goes into "build/*_release/" and common compiler ', &
362362
' optimization flags are used. ', &
363-
' --list list candidates instead of building or running them ', &
363+
' --list List candidates instead of building or running them. ', &
364+
' On the fpm command this shows a brief list of subcommands.', &
364365
' -- ARGS Arguments to pass to executables/tests ', &
365366
' --help Show help text and exit. Valid for all subcommands. ', &
366367
' --version Show version information and exit. Valid for all ', &

0 commit comments

Comments
 (0)