11///usr/bin/env jbang "$0" "$@" ; exit $?
22
33//DEPS info.picocli:picocli:4.6.3
4- //DEPS org. gitlab4j:gitlab4j -api:6.0.0-rc.7
4+ //DEPS https://github.com/jmini/ gitlab4j-api/commit/157f0b160aaec6fff02d817907f1643de2dc23c0
55//JAVA 17
66
77import java .io .FileInputStream ;
@@ -72,7 +72,7 @@ public Integer call() throws Exception {
7272 System .out .println ("Global search..." );
7373 SearchScope <Object > globalSearchScope = SearchScope .forValue (scope );
7474 if (globalSearchScope == null ) {
75- System .out .println ("Value '" + scope + "' is not expected for '--scope'" );
75+ System .out .println ("Value '" + scope + "' is not expected for '--scope', possible values: " + SearchScope . values () );
7676 return 1 ;
7777 }
7878
@@ -81,15 +81,15 @@ public Integer call() throws Exception {
8181 System .out .println ("Project search..." );
8282 ProjectSearchScope <Object > projectSearchScope = ProjectSearchScope .forValue (scope );
8383 if (projectSearchScope == null ) {
84- System .out .println ("Value '" + scope + "' is not expected for '--scope'" );
84+ System .out .println ("Value '" + scope + "' is not expected for '--scope', possible values: " + ProjectSearchScope . values () );
8585 return 1 ;
8686 }
8787 result = searchApi .projectSearch (idOrPath (project ), projectSearchScope , query );
8888 } else if (group != null ) {
8989 System .out .println ("Group search..." );
9090 GroupSearchScope <Object > groupSearchScope = GroupSearchScope .forValue (scope );
9191 if (groupSearchScope == null ) {
92- System .out .println ("Value '" + scope + "' is not expected for '--scope'" );
92+ System .out .println ("Value '" + scope + "' is not expected for '--scope', possible values: " + GroupSearchScope . values () );
9393 return 1 ;
9494 }
9595 result = searchApi .groupSearch (idOrPath (group ), groupSearchScope , query );
0 commit comments