Skip to content

Commit 9980b5b

Browse files
committed
[swift-api-dump] Omit 'python' in usage (NFC)
- Since this file has a Python shebang (`#!/usr/bin/env python`) at the top, it can be invoked directly, without specifying which Python interpreter to use on the command line. - Use the `%(prog)s` substitution instead of writing the program name again explicitly.
1 parent fc43acd commit 9980b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/swift-api-dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def create_parser():
7373
parser = argparse.ArgumentParser(
7474
description="Dumps imported Swift APIs for a module or SDK",
7575
prog='swift-api-dump.py',
76-
usage='python swift-api-dump.py -s iphoneos')
76+
usage='%(prog)s -s iphoneos')
7777
parser.add_argument('-m', '--module', help='The module name.')
7878
parser.add_argument('-j', '--jobs', type=int, help='The number of parallel jobs to execute')
7979
parser.add_argument('-s', '--sdk', nargs='+', required=True, help="The SDKs to use.")

0 commit comments

Comments
 (0)