Craig Raw
4 years ago
12 changed files with 133 additions and 15 deletions
@ -1 +1 @@ |
|||
Subproject commit 747bfa915f1ecf743b5e8876b9a4c54062e57c94 |
|||
Subproject commit b877e94cd09adb3fbc17ecba95897ae5c428ffe9 |
@ -0,0 +1,7 @@ |
|||
set ARGS=%* |
|||
|
|||
if "%ARGS%" != "" ( |
|||
gradlew.bat run --args="%ARGS%" |
|||
) else ( |
|||
gradlew.bat run |
|||
) |
@ -0,0 +1,11 @@ |
|||
#!/usr/bin/env sh |
|||
|
|||
args="$*" |
|||
args="${args%"${args##*[![:space:]]}"}" |
|||
|
|||
if [ -n "$args" ] |
|||
then |
|||
./gradlew run --args="$args" |
|||
else |
|||
./gradlew run |
|||
fi |
@ -0,0 +1,15 @@ |
|||
package com.sparrowwallet.sparrow; |
|||
|
|||
import com.beust.jcommander.Parameter; |
|||
import com.sparrowwallet.drongo.Network; |
|||
|
|||
public class Args { |
|||
@Parameter(names = { "--dir", "-d" }, description = "Path to Sparrow home folder") |
|||
public String dir; |
|||
|
|||
@Parameter(names = { "--network", "-n" }, description = "Network to use (mainnet, testnet or regtest)") |
|||
public Network network; |
|||
|
|||
@Parameter(names = { "--help", "-h" }, description = "Show usage", help = true) |
|||
public boolean help; |
|||
} |
Loading…
Reference in new issue