|
|
|
@ -0,0 +1,14 @@ |
|
|
|
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() |