Skip to content

Commit e2fb31d

Browse files
cli/group (gitlab-cli-group/list): Check for required options
* modules/gitlab/cli/group.scm (gitlab-cli-group/list): Check for "server" and "token" options.
1 parent 3b130c0 commit e2fb31d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/gitlab/cli/group.scm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ Options:
6060
(print-help/list program-name)
6161
(exit 0))
6262

63+
(unless server
64+
(error "'--server' option must be specified" args))
65+
66+
(unless token
67+
(error "'--token' option must be specified" args))
68+
6369
(let* ((session (make <session>
6470
#:endpoint server
6571
#:token token))

0 commit comments

Comments
 (0)