From 85fb5f5c81f40839f59edd1363325eaa1ea02822 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 15 Jun 2021 07:42:21 +0200 Subject: [PATCH] [DEV] start integrate death --- .classpath | 5 +++++ src/module-info.java | 1 + src/org/atriasoft/island/MainIsland.java | 13 +++++++------ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.classpath b/.classpath index 314c64e..7d2c305 100644 --- a/.classpath +++ b/.classpath @@ -20,5 +20,10 @@ + + + + + diff --git a/src/module-info.java b/src/module-info.java index 40d80a6..965290f 100644 --- a/src/module-info.java +++ b/src/module-info.java @@ -9,4 +9,5 @@ open module org.atriasoft.island { requires transitive io.scenarium.logger; requires java.base; + requires org.atriasoft.death; } diff --git a/src/org/atriasoft/island/MainIsland.java b/src/org/atriasoft/island/MainIsland.java index 01f8a39..4a646c6 100755 --- a/src/org/atriasoft/island/MainIsland.java +++ b/src/org/atriasoft/island/MainIsland.java @@ -1,14 +1,15 @@ package org.atriasoft.island; +import org.atriasoft.death.Arguments; public class MainIsland { //debug.verbose("List of actions: " + str(actions.get_list_of_action())) - -my_args = arguments.Arguments() -my_args.add_section("option", "Can be set one time in all case") -my_args.add("h", "help", desc="Display this help") -my_args.add("v", "verbose", list=[ +static { + Arguments my_args = new Arguments(); +my_args.addSection("option", "Can be set one time in all case"); +my_args.add("h", "help", null, "Display this help"); +my_args.add("v", "verbose", { ["0","None"], ["1","error"], ["2","warning"], @@ -16,7 +17,7 @@ my_args.add("v", "verbose", list=[ ["4","debug"], ["5","verbose"], ["6","extreme_verbose"], - ], desc="display debug level (verbose) default =2") +}, desc="display debug level (verbose) default =2") my_args.add("c", "color", desc="Display message in color") my_args.add("n", "no-fetch-manifest", haveParam=false, desc="Disable the fetch of the manifest") my_args.add("F", "filter", haveParam=true, desc="Filter the action on a list of path or subpath: -f library")