diff --git a/README.md b/README.md index 63aabda..7180c06 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # gitcloner + Clone all repos of a user or organization with this command line python script. ## Usage + ```gitcloner [-h] [-u | -o] name``` Valid OPTIONS: @@ -29,7 +31,7 @@ gitcloner -o google Install using setup.py file provided ```sh git clone https://github.com/shakib609/gitcloner.git -python3 setup.py install +[sudo] python3 setup.py install ``` ## Requirements diff --git a/gitcloner b/gitcloner index 0d41cf0..060dd94 100755 --- a/gitcloner +++ b/gitcloner @@ -32,4 +32,9 @@ def main(): account.clone_repos() -main() +if __name__ == '__main__': + try: + main() + except KeyboardInterrupt: + print('\nCloning cancelled!') + print('Interrupted by user.')