This commit is contained in:
darkclip committed 2024-01-31 03:05:28 +08:00
1 parent a97448f2be
commit b1df6b7185
1 file changed
+7 -1
+7 -1
View File
@@ -90,7 +90,13 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument('known_hosts', type=Path, help='known_hosts file to read')
parser.add_argument(
'-i',
'--known_hosts',
type=Path,
default=f"{os.path.expanduser('~')}/.ssh/known_hosts",
help='known_hosts file to read',
)
parser.add_argument('-o', '--output', type=Path, help='output file to write')
parser.set_defaults(func=main)
args = parser.parse_args()