Last active
December 30, 2020 12:27
-
-
Save percybolmer/923ff32a0534eb49c38c022298ce2ab0 to your computer and use it in GitHub Desktop.
codereview-gitcommit-main:26-30 with the new updated user input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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