Skip to content

Commit

Permalink
Change flag letter to avoid clashing with existing cron flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkw31 committed Sep 6, 2024
1 parent 1fb3dc8 commit d92e73b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion cmd/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d92e73b

Please sign in to comment.