Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit b467fa2

Browse files
authored
Make '-d' and '-o' required arguments in fixup script (#301)
This results in a slightly more helpful message being displayed if someone tries to run `fixup_keywords.py` with no additional context.
1 parent 421079c commit b467fa2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

gapic/templates/scripts/fixup_keywords.py.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,17 @@ Note: This tool operates at a best-effort level at converting positional
136136
""")
137137
parser.add_argument(
138138
'-d',
139+
'--input-directory',
140+
required=True,
139141
dest='input_dir',
140142
help='the input directory to walk for python files to fix up',
141143
)
142144
parser.add_argument(
143145
'-o',
146+
'--output-directory',
147+
required=True,
144148
dest='output_dir',
145-
help='a file to fix up via un-flattening',
149+
help='the directory to output files fixed via un-flattening',
146150
)
147151
args = parser.parse_args()
148152
input_dir = pathlib.Path(args.input_dir)

0 commit comments

Comments
 (0)