mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-28 16:47:25 -04:00
Accept --clean=true
as a shortcut for --app.data.dir.clean=true
See #291
This commit is contained in:
parent
582761e663
commit
aa3fc929cb
2 changed files with 6 additions and 2 deletions
|
@ -79,7 +79,9 @@ public class BitsquareApp extends Application {
|
||||||
|
|
||||||
// initialize the application data directory (if necessary)
|
// initialize the application data directory (if necessary)
|
||||||
|
|
||||||
initAppDir(env.getRequiredProperty(APP_DATA_DIR_KEY), env.getProperty(APP_DATA_DIR_CLEAN_KEY, boolean.class));
|
initAppDir(
|
||||||
|
env.getRequiredProperty(APP_DATA_DIR_KEY),
|
||||||
|
env.getRequiredProperty(APP_DATA_DIR_CLEAN_KEY, boolean.class));
|
||||||
|
|
||||||
|
|
||||||
// load and apply any stored settings
|
// load and apply any stored settings
|
||||||
|
|
|
@ -30,6 +30,7 @@ import joptsimple.OptionSet;
|
||||||
import static io.bitsquare.app.BitsquareEnvironment.*;
|
import static io.bitsquare.app.BitsquareEnvironment.*;
|
||||||
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
|
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
|
||||||
import static io.bitsquare.network.Node.*;
|
import static io.bitsquare.network.Node.*;
|
||||||
|
import static java.util.Arrays.asList;
|
||||||
|
|
||||||
public class BitsquareAppMain extends BitsquareExecutable {
|
public class BitsquareAppMain extends BitsquareExecutable {
|
||||||
|
|
||||||
|
@ -45,7 +46,8 @@ public class BitsquareAppMain extends BitsquareExecutable {
|
||||||
.withRequiredArg();
|
.withRequiredArg();
|
||||||
parser.accepts(APP_DATA_DIR_KEY, description("Application data directory", DEFAULT_APP_DATA_DIR))
|
parser.accepts(APP_DATA_DIR_KEY, description("Application data directory", DEFAULT_APP_DATA_DIR))
|
||||||
.withRequiredArg();
|
.withRequiredArg();
|
||||||
parser.accepts(APP_DATA_DIR_CLEAN_KEY, description("Clean application data dir", DEFAULT_APP_DATA_DIR_CLEAN))
|
parser.acceptsAll(asList(APP_DATA_DIR_CLEAN_KEY, "clean"),
|
||||||
|
description("Clean application data directory", DEFAULT_APP_DATA_DIR_CLEAN))
|
||||||
.withRequiredArg()
|
.withRequiredArg()
|
||||||
.ofType(boolean.class);
|
.ofType(boolean.class);
|
||||||
parser.accepts(NAME_KEY, description("Name of this node", null))
|
parser.accepts(NAME_KEY, description("Name of this node", null))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue