mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
CurseForge: remove invalid comment
This commit is contained in:
parent
8937960d52
commit
94a74676c8
@ -57,11 +57,11 @@ var installCmd = &cobra.Command{
|
|||||||
if addonIDFlag != 0 {
|
if addonIDFlag != 0 {
|
||||||
modID = addonIDFlag
|
modID = addonIDFlag
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len(args) == 0 || len(args[0]) == 0) && modID == 0 {
|
if (len(args) == 0 || len(args[0]) == 0) && modID == 0 {
|
||||||
fmt.Println("You must specify a project; with the ID flags, or by passing a URL, slug or search term directly.")
|
fmt.Println("You must specify a project; with the ID flags, or by passing a URL, slug or search term directly.")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
// If there are more than 1 argument, go straight to searching - URLs/Slugs should not have spaces!
|
|
||||||
if modID == 0 && len(args) == 1 {
|
if modID == 0 && len(args) == 1 {
|
||||||
parsedGame, parsedCategory, parsedSlug, parsedFileID, err := parseSlugOrUrl(args[0])
|
parsedGame, parsedCategory, parsedSlug, parsedFileID, err := parseSlugOrUrl(args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user