Stack: Fix argument-less invocation

Add nargs='?' to allow a missing positional argument.

Bug: 131662960
Test: manual
Change-Id: I47d98c7d903b0028bd9969580ff0217aaf0cfb78
This commit is contained in:
Andreas Gampe
2019-04-30 10:07:24 -07:00
parent f504f3a6ba
commit dcf9800c7e

View File

@@ -29,6 +29,7 @@ def main():
parser.add_argument('file',
metavar='FILE',
default='-',
nargs='?', # Required for default.
help='should contain a stack trace in it somewhere the '
'tool will find that and re-print it with source '
'files and line numbers. If you don\'t pass FILE, '