public List < HelpOption > getOptions ( ) { final BQRuntime runtime = createRuntime ( ) ; final ApplicationMetadata application = runtime . getInstance ( ApplicationMetadata . class ) ; final HelpOptions helpOptions = new HelpOptions ( ) ; application . getCommands ( ) . forEach ( c -> { helpOptions . add ( c . asOption ( ) ) ; c . getOptions ( ) . forEach ( o -> helpOptions . add ( o ) ) ; } ) ; application . getOptions ( ) . forEach ( o -> helpOptions . add ( o ) ) ; return helpOptions . getOptions ( ) ; }
Replies the options of the program .