Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 544e6f8

Browse files
Merge pull request #65 from bakfile/ChanceNCounter/issue46
#46: rename get-bak to 'where', fix its #62 bug
2 parents f638cbe + b266eaf commit 544e6f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bak/__main__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,17 @@ def bak_print(filename, using):
130130
commands.bak_print_cmd(filename, using)
131131

132132

133-
@bak.command("get-bak",
133+
@bak.command("where",
134134
help="Outputs the real path of a .bakfile. "
135135
"Useful for piping, and not much else.",
136136
short_help="Output the real path of a .bakfile")
137-
@click.argument("to_where_you_once_belonged",
137+
@click.argument("filename",
138138
required=True,
139-
type=click.Path(exists=True))
139+
type=click.Path())
140140
@normalize_path()
141-
def bak_get(to_where_you_once_belonged):
141+
def bak_get(filename):
142142
to_where_you_once_belonged = Path(
143-
to_where_you_once_belonged).expanduser().resolve()
143+
filename).expanduser().resolve()
144144
commands.bak_getfile_cmd(to_where_you_once_belonged)
145145

146146

0 commit comments

Comments
 (0)