7167: Break all the code from keep-rsync main method into a separate func so that...
authorradhika <radhika@curoverse.com>
Fri, 16 Oct 2015 02:55:03 +0000 (22:55 -0400)
committerradhika <radhika@curoverse.com>
Fri, 16 Oct 2015 02:55:03 +0000 (22:55 -0400)
commitc9018ad3b7f67f2f15a6a6671bf271858926586e
treeede367dcdd1c6883dbd7a769c73c393281898f56
parent807e4cd4abee760736fa32704785d673b0e908cd
7167: Break all the code from keep-rsync main method into a separate func so that arg parsing can also be tested.
Rather than using default flag parsing, use FlagSet so that flags can be set multiple times from multiple tests.
tools/keep-rsync/keep-rsync.go
tools/keep-rsync/keep-rsync_test.go