diff --git a/copy_cert.py b/copy_cert.py index b414329..6bd423e 100644 --- a/copy_cert.py +++ b/copy_cert.py @@ -36,7 +36,7 @@ def exec_remote(connection: paramiko.SSHClient, command): if __name__ == "__main__": - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser(prefix_chars="*") parser.add_argument( 'cert_path', help="location of the certificate to install") parser.add_argument( @@ -44,7 +44,7 @@ if __name__ == "__main__": parser.add_argument( 'store_path', help="directory to store the private key and certificate") - parser.add_argument('-d', '--dry', action='store_true') + parser.add_argument('*d', '**dry', action='store_true') args = parser.parse_args() # Connect to host router = connection_from_config('router')