diff --git a/ssh-host.py b/ssh-host.py old mode 100644 new mode 100755 index 1a47426..ab66b3a --- a/ssh-host.py +++ b/ssh-host.py @@ -2,12 +2,12 @@ import subprocess import argparse import configparser -cp = configparser.ConfigParser(interpolate=configparser.ExtendedInterpolation()) +cp = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation()) cp.read('hostnames.ini') if __name__ == "__main__": parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group(required=True) - group.add_argument('-o','—-wan',action = 'store_true') + group.add_argument('-o','--wan',action = 'store_true') group.add_argument('-l','--lan',action = 'store_true') parser.add_argument('-p','--pre-script', help= 'script to run before connecting(in config dir)') parser.add_argument('name',help='name of config file to use (sans .cfg)')