You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
505 B

from argparse import ArgumentParser
def main():
parser = ArgumentParser()
parser.add_argument("-d", "--dry", action="store_true", help="Don't do anything")
parser.add_argument("--dump-config", action="store_true", help="Show config")
parser.add_argument(
"-c" "--config", help="config path for backup script", default=None
)
parser.add_argument(
"name", help="hostname in ssh_config file for openwrt device we need to backup"
)
args = parser.parse_args()