mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01: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)
|
||||
|
||||
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
|
||||
|
|
|
@ -30,6 +30,7 @@ import joptsimple.OptionSet;
|
|||
import static io.bitsquare.app.BitsquareEnvironment.*;
|
||||
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
|
||||
import static io.bitsquare.network.Node.*;
|
||||
import static java.util.Arrays.asList;
|
||||
|
||||
public class BitsquareAppMain extends BitsquareExecutable {
|
||||
|
||||
|
@ -45,7 +46,8 @@ public class BitsquareAppMain extends BitsquareExecutable {
|
|||
.withRequiredArg();
|
||||
parser.accepts(APP_DATA_DIR_KEY, description("Application data directory", DEFAULT_APP_DATA_DIR))
|
||||
.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()
|
||||
.ofType(boolean.class);
|
||||
parser.accepts(NAME_KEY, description("Name of this node", null))
|
||||
|
|
Loading…
Add table
Reference in a new issue