Skip to content

Commit 316ccfd

Browse files
committed
cli - Path.expanduser() for @ prefixed arguments
1 parent f9d1412 commit 316ccfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiopenapi3/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def cmd_call(args: argparse.Namespace) -> None:
199199
def prepare_arg(value):
200200
if value:
201201
if value[0] == "@":
202-
with Path(value[1:]).open("rt") as f:
202+
with Path(value[1:]).expanduser().open("rt") as f:
203203
data = json.load(f)
204204
else:
205205
data = json.loads(value)

0 commit comments

Comments
 (0)