def _add_destination_arguments()

in cstar/args.py [0:0]


def _add_destination_arguments(parser):
    parser.add_argument('--seed-host', nargs='*',
                        help='One or more hosts to use as seeds for the cluster topology')

    parser.add_argument('--host', nargs='*', help='One or more hosts to run the script on')

    parser.add_argument('--host-file',
                        help='A file containing one or more hosts to run the script on (newline separated)')
    parser.add_argument('--use-sudo', action="store_true", default=False,
                        help='Run the nodetool commands as root via sudo')
    parser.add_argument('--sudo-args', type=str, default="",
                        help='The nodetool commands sudo arguments')
    # The amount of time in seconds to sleep after spinning up a new runner.
    # Spinning up too many things at once seems to cause timeouts. Not sure
    #  if it's paramiko being slow or what, but this seems to help.
    parser.add_argument('--ssh-pause-time', type=float, default=0.5,
                        help='The amount of time to pause between establishing new ssh connections to avoid timeouts')
    parser.add_argument('--node-done-pause-time', type=float, default=0.0,
                        help='The amount of time (in seconds) to pause between a node has finished and the next node starting')
    parser.add_argument('--ssh-lib', type=str, default="paramiko",
                        help='SSH library to use for remote connections')
    parser.add_argument('--hosts-variables',
                        help='A JSON file containing host specific variables in the form: {"host1": {"var1": "host1_var1", "var2": "host1_var2"}, "host2": {"var1": "host2_var1", "var2": "host2_var2"}}')