Skip to content

Commit

Permalink
Merge pull request #6 from dasginganinja/we-are-ready-to-launch
Browse files Browse the repository at this point in the history
Fixes the issue with the short -r not working. We are feature complete
  • Loading branch information
dasginganinja authored Aug 1, 2023
2 parents 48a0e7a + 5350698 commit c9d90d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ import (

func main() {
// Parse command-line flags
altRoot := flag.String("root", "", "Set an alternative Drupal root")
altRoot := flag.String("r", "", "Set an alternative Drupal root")
altRootLong := flag.String("root", "", "Set an alternative Drupal root (long form)")
flag.Parse()

var drupalRoot string

// Use the alternative Drupal root if provided
if *altRoot != "" {
drupalRoot = *altRoot
} else if *altRootLong != "" {
drupalRoot = *altRootLong
} else {
// If no alternative root provided, find the Drupal root from the current directory
cwd, err := os.Getwd()
Expand Down

0 comments on commit c9d90d4

Please sign in to comment.