Skip to content

Commit

Permalink
Bugfix (minor): ttpforge remove repo options (#431)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #431

Quick fix - remove some copypasta that made the usage message confusing (though command still worked)

Reviewed By: cedowens

Differential Revision: D51449668

fbshipit-source-id: 3c007d182b8deeab50e595b93a892d00847bcd3e
  • Loading branch information
d3sch41n authored and facebook-github-bot committed Nov 18, 2023
1 parent 68a69b7 commit b479c29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/removerepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ import (
)

func buildRemoveRepoCommand(cfg *Config) *cobra.Command {
var newRepoSpec repos.Spec
removeRepoCommand := &cobra.Command{
Use: "repo",
Use: "repo [repo_name]",
Short: "remove (uninstall) a repository of TTPs used by TTPForge",
TraverseChildren: true,
Args: cobra.ExactArgs(1),
Expand Down Expand Up @@ -71,6 +70,5 @@ func buildRemoveRepoCommand(cfg *Config) *cobra.Command {
return nil
},
}
removeRepoCommand.PersistentFlags().StringVar(&newRepoSpec.Name, "name", "", "The name to use for the new repository")
return removeRepoCommand
}

0 comments on commit b479c29

Please sign in to comment.