@@ -22,4 +22,4 @@ mmgen-addrgen: Generate a series or range of addresses from an MMGen
"""
from mmgen.main import launch
-launch("addrgen")
+launch(mod='addrgen')
@@ -21,4 +21,4 @@ mmgen-addrimport: Import addresses into a MMGen bitcoind watching wallet
-launch("addrimport")
+launch(mod='addrimport')
@@ -21,4 +21,4 @@ mmgen-autosign: Auto-sign MMGen transactions
-launch("autosign")
+launch(mod='autosign')
@@ -22,4 +22,4 @@ mmgen-keygen: Generate a series or range of keys from an MMGen deterministic
-launch("keygen")
@@ -13,4 +13,4 @@ mmgen-msg: Message signing operations for the MMGen suite
-launch("msg")
+launch(mod='msg')
@@ -22,4 +22,4 @@ mmgen-passchg: Change an MMGen deterministic wallet's passphrase, label or
-launch("passchg")
+launch(mod='wallet')
@@ -22,4 +22,4 @@ mmgen-passgen: Generate a range or series of passwords from an MMGen
-launch("passgen")
+launch(mod='passgen')
@@ -22,4 +22,4 @@ mmgen-regtest: Bitcoind regression test mode setup and operations for the MMGen
-launch("regtest")
+launch(mod='regtest')
@@ -21,4 +21,4 @@ mmgen-seedjoin: Recreate an MMGen deterministic wallet from its component shares
-launch("seedjoin")
+launch(mod='seedjoin')
@@ -21,4 +21,4 @@ mmgen-seedsplit: Generate a seed split from an MMGen deterministic wallet
-launch("seedsplit")
@@ -21,4 +21,4 @@ mmgen-subwalletgen: Generate a subwallet from an MMGen deterministic wallet
-launch("subwalletgen")
@@ -22,4 +22,4 @@ mmgen-tool: Perform various Bitcoin-related operations.
-launch("tool")
+launch(mod='tool')
@@ -22,4 +22,4 @@ optionally sign and send it.
-launch("txbump")
+launch(mod='txbump')
@@ -22,4 +22,4 @@ mmgen-txcreate: Create a Bitcoin transaction from MMGen- or non-MMGen inputs
-launch("txcreate")
+launch(mod='txcreate')
@@ -21,4 +21,4 @@ mmgen-txdo: Create, sign and broadcast an online MMGen transaction
-launch("txdo")
+launch(mod='txdo')
@@ -21,4 +21,4 @@ mmgen-txsend: Broadcast a transaction signed by 'mmgen-txsign' to the network
-launch("txsend")
+launch(mod='txsend')
@@ -21,4 +21,4 @@ mmgen-txsign: Sign a transaction generated by 'mmgen-txcreate'
-launch("txsign")
+launch(mod='txsign')
@@ -21,4 +21,4 @@ mmgen-walletchk: Check integrity of an MMGen deterministic wallet
-launch("walletchk")
@@ -22,4 +22,4 @@ mmgen-walletconv: Convert an MMGen deterministic wallet from one format
-launch("walletconv")
@@ -21,4 +21,4 @@ mmgen-walletgen: Generate an MMGen deterministic wallet
-launch("walletgen")
@@ -21,4 +21,4 @@ mmgen-xmrwallet: Monero wallet ops for the MMGen suite
-launch("xmrwallet")
+launch(mod='xmrwallet')
@@ -22,13 +22,7 @@ main: Script launcher for the MMGen Project
import sys,os
-def launch(mod,package='mmgen'):
-
- if mod in ('walletgen','walletchk','walletconv','passchg','subwalletgen','seedsplit'):
- mod = 'wallet'
- if mod == 'keygen':
- mod = 'addrgen'
+def launch(*, mod=None, package='mmgen'):
if sys.platform == 'linux' and sys.stdin.isatty():
import termios,atexit