Browse Source

mmgen-tool xmrwallet: cmd arg annotation fix

The MMGen Project 4 years ago
parent
commit
1c9e81e80c
1 changed files with 7 additions and 5 deletions
  1. 7 5
      mmgen/tool.py

+ 7 - 5
mmgen/tool.py

@@ -100,8 +100,10 @@ def _usage(cmd=None,exit_val=1):
 			Msg('')
 		Msg(m2)
 	elif cmd in MMGenToolCmds:
-		msg('{}USAGE: {} {} {}'.format(
-			fmt(capfirst(MMGenToolCmds[cmd].__doc__.strip()),strip_char='\t'),
+		p1 = fmt(capfirst(MMGenToolCmds[cmd].__doc__.strip()),strip_char='\t').strip()
+		msg('{}{}\nUSAGE: {} {} {}'.format(
+			p1,
+			('\n' if '\n' in p1 else ''),
 			g.prog_name,cmd,
 			_create_call_sig(cmd))
 		)
@@ -1019,9 +1021,9 @@ class MMGenToolCmdMonero(MMGenToolCmds):
 		xmr_keyaddrfile:     str,
 		blockheight:         '(default: current height)' = 0,
 		wallets:             '(integer range or list)'   = '',
-		start_wallet_daemon: bool                        = True,
-		stop_wallet_daemon:  bool                        = True,
-		monerod_args:        str                         = '',
+		start_wallet_daemon  = True,
+		stop_wallet_daemon   = True,
+		monerod_args         = '',
 	):
 
 		"""