Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for showVersionAndExit (0.6 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

            Options options = invokerRequest.options().orElseThrow();
            Assertions.assertFalse(options.showVersion().orElse(false));
            Assertions.assertFalse(options.showVersionAndExit().orElse(false));
            Assertions.assertTrue(options.showErrors().orElse(false));
            Assertions.assertTrue(options.verbose().orElse(false));
    
            // user home
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

                return Optional.of(toMap(commandLine.getOptionProperties(CLIManager.USER_PROPERTY)));
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> showVersionAndExit() {
            if (commandLine.hasOption(CLIManager.SHOW_VERSION_AND_EXIT)) {
                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Oct 08 07:36:42 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                context.options().displayHelp(context.invokerRequest.parserRequest(), writer);
                throw new InvokerException.ExitException(0);
            }
            if (context.options().showVersionAndExit().isPresent()) {
                showVersion(context);
                throw new InvokerException.ExitException(0);
            }
        }
    
        protected void showVersion(C context) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
Back to top