Skip to content

Commit e7d7ac8

Browse files
committed
Clean up fpm help new and add --help and --version to fpm help publish
1 parent a3d689f commit e7d7ac8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/fpm_command_line.f90

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,13 +1125,15 @@ subroutine set_help()
11251125
help_new=[character(len=80) :: &
11261126
'NAME ', &
11271127
' new(1) - the fpm(1) subcommand to initialize a new project ', &
1128+
' ', &
11281129
'SYNOPSIS ', &
1129-
' fpm new NAME [[--lib|--src] [--app] [--test] [--example]]| ', &
1130-
' [--full|--bare][--backfill] ', &
1130+
' fpm new NAME [[--lib|--src] [--app] [--test] [--example]]| ', &
1131+
' [--full|--bare][--backfill] ', &
11311132
' fpm new --help|--version ', &
11321133
' ', &
11331134
'DESCRIPTION ', &
11341135
' "fpm new" creates and populates a new programming project directory. ', &
1136+
' ', &
11351137
' It ', &
11361138
' o creates a directory with the specified name ', &
11371139
' o runs the command "git init" in that directory ', &
@@ -1361,6 +1363,8 @@ subroutine set_help()
13611363
'SYNOPSIS', &
13621364
' fpm publish [--token TOKEN]', &
13631365
'', &
1366+
' fpm publish --help|--version', &
1367+
'', &
13641368
'DESCRIPTION', &
13651369
' Collect relevant source files and upload package to the registry.', &
13661370
' It is mandatory to provide a token. The token can be generated on the', &
@@ -1369,6 +1373,8 @@ subroutine set_help()
13691373
'OPTIONS', &
13701374
' --show-package-version show package version without publishing', &
13711375
' --show-form-data show sent form data without publishing', &
1376+
' --help print this help and exit', &
1377+
' --version print program version information and exit', &
13721378
'' ]
13731379
end subroutine set_help
13741380

0 commit comments

Comments
 (0)