From dcf9800c7e172acd88c121134d4948d8647db53f Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Tue, 30 Apr 2019 10:07:24 -0700 Subject: [PATCH] Stack: Fix argument-less invocation Add nargs='?' to allow a missing positional argument. Bug: 131662960 Test: manual Change-Id: I47d98c7d903b0028bd9969580ff0217aaf0cfb78 --- scripts/stack | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/stack b/scripts/stack index 63600e351..ef28980fc 100755 --- a/scripts/stack +++ b/scripts/stack @@ -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, '