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

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