protected static void displayCommandLineHelp ( SelfExtractor extractor ) { // This method takes a SelfExtractor in case we want to tailor the help to the current archive // Get the name of the JAR file to display in the command syntax"); String jarName = System . getProperty ( "sun.java.command" , "wlp-liberty-developers-core.jar" ) ; String [ ] s = jarName . split ( " " ) ; jarName = s [ 0 ] ; System . out . println ( "\n" + SelfExtract . format ( "usage" ) ) ; System . out . println ( "\njava -jar " + jarName + " [" + SelfExtract . format ( "options" ) + "] [" + SelfExtract . format ( "installLocation" ) + "]\n" ) ; System . out . println ( SelfExtract . format ( "options" ) ) ; System . out . println ( " --acceptLicense" ) ; System . out . println ( " " + SelfExtract . format ( "helpAcceptLicense" ) ) ; System . out . println ( " --verbose" ) ; System . out . println ( " " + SelfExtract . format ( "helpVerbose" ) ) ; System . out . println ( " --viewLicenseAgreement" ) ; System . out . println ( " " + SelfExtract . format ( "helpAgreement" ) ) ; System . out . println ( " --viewLicenseInfo" ) ; System . out . println ( " " + SelfExtract . format ( "helpInformation" ) ) ; if ( extractor . isUserSample ( ) ) { System . out . println ( " --downloadDependencies" ) ; System . out . println ( " " + SelfExtract . format ( "helpDownloadDependencies" ) ) ; } }
Display command line usage .