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:
@@ -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, '
|
||||
|
||||
Reference in New Issue
Block a user