Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active December 30, 2020 12:27
Show Gist options
  • Save percybolmer/923ff32a0534eb49c38c022298ce2ab0 to your computer and use it in GitHub Desktop.
Save percybolmer/923ff32a0534eb49c38c022298ce2ab0 to your computer and use it in GitHub Desktop.
codereview-gitcommit-main:26-30 with the new updated user input
var path string
// Read user input
flag.StringVar(&path, "path", "", "A filepath to a folder containing a github repository")
// Parse Flags
flag.Parse()
// Make sure user has inserted the needed flags
if path == "" {
flag.Usage()
os.Exit(0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment