diff --git a/cmd/cron.go b/cmd/cron.go index ff7c2a05..c869ff23 100644 --- a/cmd/cron.go +++ b/cmd/cron.go @@ -108,6 +108,7 @@ func init() { "from specified directory after merging") cronCmd.Flags().BoolVarP(&createPartial, "create_partial_dir", "p", false, "perform the walk, "+ "stat, and combine steps only") + cronCmd.Flags().BoolVarP(&finishPartial, "partial_dir_finish", "z", false, "perform the basedir and tidy step on a partial run") cronCmd.Flags().IntVarP(&multiInodes, "inodes_per_stat", "n", defaultInodesPerJob, "number of inodes per parallel stat job") cronCmd.Flags().IntVarP(&multiStatJobs, "num_stat_jobs", "j", diff --git a/cmd/multi.go b/cmd/multi.go index cdf696a1..fc720e1f 100644 --- a/cmd/multi.go +++ b/cmd/multi.go @@ -162,7 +162,7 @@ func init() { "from specified directory after merging") multiCmd.Flags().BoolVarP(&createPartial, "create_partial_dir", "p", false, "perform the walk, "+ "stat, and combine steps only") - multiCmd.Flags().BoolVarP(&finishPartial, "partial_dir_finish", "c", false, "perform the basedir and tidy step on a partial run") + multiCmd.Flags().BoolVarP(&finishPartial, "partial_dir_finish", "z", false, "perform the basedir and tidy step on a partial run") multiCmd.Flags().IntVarP(&multiInodes, "inodes_per_stat", "n", defaultInodesPerJob, "number of inodes per parallel stat job") multiCmd.Flags().IntVarP(&multiStatJobs, "num_stat_jobs", "j", diff --git a/main_test.go b/main_test.go index 10e9ff94..1075a042 100644 --- a/main_test.go +++ b/main_test.go @@ -538,7 +538,7 @@ func testPartial(t *testing.T, sudo bool, subcommand []string, date string, walk Convey("…finishing the partial run runs the correct jobs", func() { workingDir := t.TempDir() _, _, jobs, err := runWRStat(append(subcommand, "-w", workingDir, "-f", "final_output", "-q", "quota_file", - "-o", "owners_file", "-c", "/some/path", "/some-other/path")...) + "-o", "owners_file", "-z", "/some/path", "/some-other/path")...) So(err, ShouldBeNil) So(len(jobs), ShouldEqual, 2)