update opts_data for all scripts
This commit is contained in:
parent
3a281391a4
commit
fee2b567fd
4 changed files with 24 additions and 17 deletions
|
|
@ -23,10 +23,11 @@ mmgen-blocks-info: Display information about a block or range of blocks
|
|||
import time,re
|
||||
from mmgen.common import *
|
||||
|
||||
opts_data = lambda: {
|
||||
'desc': 'Display information about or find a transaction within a range of blocks',
|
||||
'usage': '[opts] +<last n blocks>|<block num>|<block num range>',
|
||||
'options': """
|
||||
opts_data = {
|
||||
'text': {
|
||||
'desc': 'Display information about or find a transaction within a range of blocks',
|
||||
'usage': '[opts] +<last n blocks>|<block num>|<block num range>',
|
||||
'options': """
|
||||
-h, --help Print this help message
|
||||
--, --longhelp Print help message for long options (common options)
|
||||
-H, --hashes Display only block numbers and hashes
|
||||
|
|
@ -38,6 +39,7 @@ opts_data = lambda: {
|
|||
|
||||
If no block number is specified, the current block is assumed
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
|
|
|||
|
|
@ -23,13 +23,15 @@ mmgen-netrate: Bitcoin daemon network rate monitor
|
|||
import time
|
||||
from mmgen.common import *
|
||||
|
||||
opts_data = lambda: {
|
||||
'desc': 'Bitcoin daemon network rate monitor',
|
||||
'usage': '[opts]',
|
||||
'options': """
|
||||
opts_data = {
|
||||
'text': {
|
||||
'desc': 'Bitcoin daemon network rate monitor',
|
||||
'usage': '[opts]',
|
||||
'options': """
|
||||
-h, --help Print this help message
|
||||
--, --longhelp Print help message for long options (common options)
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
|
|
|||
|
|
@ -23,13 +23,15 @@ mmgen-peerblocks: List blocks in flight, disconnect stalling nodes
|
|||
import time,threading
|
||||
from mmgen.common import *
|
||||
|
||||
opts_data = lambda: {
|
||||
'desc': 'List blocks in flight, disconnect stalling nodes',
|
||||
'usage': '[opts]',
|
||||
'options': """
|
||||
opts_data = {
|
||||
'text': {
|
||||
'desc': 'List blocks in flight, disconnect stalling nodes',
|
||||
'usage': '[opts]',
|
||||
'options': """
|
||||
-h, --help Print this help message
|
||||
--, --longhelp Print help message for long options (common options)
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
|
|
|||
|
|
@ -26,14 +26,15 @@ from mmgen.util import die
|
|||
from mmgen.node_tools.Sound import *
|
||||
volume = 100
|
||||
|
||||
opts_data = lambda: {
|
||||
'prog_name': sys.argv[0].split('/')[-1],
|
||||
'desc': 'Play a sound file at controlled volume',
|
||||
'usage': '[opts]',
|
||||
'options': """
|
||||
opts_data = {
|
||||
'text': {
|
||||
'desc': 'Play a sound file at controlled volume',
|
||||
'usage': '[opts]',
|
||||
'options': """
|
||||
-h, --help Print this help message
|
||||
-v, --volume= n Adjust sound volume by percentage 'n' (default: {})
|
||||
""".format(volume)
|
||||
}
|
||||
}
|
||||
|
||||
args = opts.init(opts_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue