Fix show_error kitten --title not working
This commit is contained in:
parent
6037167336
commit
c6d3ede57e
@ -17,10 +17,10 @@ The title for the error message.
|
|||||||
|
|
||||||
|
|
||||||
def real_main(args):
|
def real_main(args):
|
||||||
|
msg = 'Show an error message'
|
||||||
|
args, items = parse_args(args[1:], OPTIONS, '', msg, 'hints')
|
||||||
error_message = sys.stdin.buffer.read().decode('utf-8')
|
error_message = sys.stdin.buffer.read().decode('utf-8')
|
||||||
sys.stdin = open(os.ctermid())
|
sys.stdin = open(os.ctermid())
|
||||||
msg = 'Show an error message'
|
|
||||||
args, items = parse_args(args, OPTIONS, '', msg, 'hints')
|
|
||||||
print(styled(args.title, fg_intense=True, fg='red', bold=True))
|
print(styled(args.title, fg_intense=True, fg='red', bold=True))
|
||||||
print()
|
print()
|
||||||
print(error_message)
|
print(error_message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user