Changeset 19177 in josm
- Timestamp:
- 2024-08-09T11:14:19+02:00 (3 months ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/ValidatorCLI.java
r19112 r19177 97 97 /** --change-file=<change-file> Add a change file */ 98 98 CHANGE_FILE(true, 'c', OptionParser.OptionCount.MULTIPLE), 99 /** --warn Set logging level to warn */ 100 WARN(false, '*'), 99 101 /** --debug Set logging level to debug */ 100 102 DEBUG(false, '*'), 101 103 /** --trace Set logging level to trace */ 102 104 TRACE(false, '*'), 103 /** --language=<language> 105 /** --language=<language> Set the language */ 104 106 LANGUAGE(true, 'l'), 105 /** --load-preferences=<url-to-xml> 107 /** --load-preferences=<url-to-xml> Changes preferences according to the XML file */ 106 108 LOAD_PREFERENCES(true, 'p'), 107 /** --set=<key>=<value> 109 /** --set=<key>=<value> Set preference key to value */ 108 110 SET(true, 's'); 109 111 … … 412 414 showHelp(); 413 415 Lifecycle.exitJosm(true, 0); 416 break; 417 case WARN: 418 this.logLevel = Logging.LEVEL_WARN; 414 419 break; 415 420 case DEBUG: -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r19109 r19177 707 707 "\t--status-report "+ShowStatusReportAction.ACTION_DESCRIPTION+"\n\n"+ 708 708 "\t--debug "+tr("Print debugging messages to console")+"\n\n"+ 709 "\t--warn "+tr("Print only warning or error messages to console")+"\n\n"+ 709 710 "\t--skip-plugins "+tr("Skip loading plugins")+"\n\n"+ 710 711 "\t--offline=" + Arrays.stream(OnlineResource.values()).map(OnlineResource::name).collect( -
trunk/src/org/openstreetmap/josm/gui/ProgramArguments.java
r17637 r19177 37 37 /** {@code --status-report} Show status report with useful information that can be attached to bugs */ 38 38 STATUS_REPORT(false), 39 /** --warn Print only warning messages to console */ 40 WARN(false), 39 41 /** --debug Print debugging messages to console */ 40 42 DEBUG(false), … … 187 189 } else if (hasOption(Option.DEBUG)) { 188 190 return Logging.LEVEL_DEBUG; 191 } else if (hasOption(Option.WARN)) { 192 return Logging.LEVEL_WARN; 189 193 } else { 190 194 return Logging.LEVEL_INFO;
Note:
See TracChangeset
for help on using the changeset viewer.