diff --git a/yolog/main.py b/yolog/main.py
index <HASH>..<HASH> 100644
--- a/yolog/main.py
+++ b/yolog/main.py
@@ -42,7 +42,7 @@ Usage: yolog [<additional optional commands>]
 
 def main():
     git_arguments = sys.argv[1:]
-    if sys.argv[1] == "-h" or sys.argv[1] == "--help":
+    if git_arguments and (sys.argv[1] == "-h" or sys.argv[1] == "--help"):
         print help_description
     else:
         os.system(yolog_gen.git_command(" ".join(git_arguments)))
Only check for help args if git_arguments not empty.

Original: If you run yolog without arguments, you get IndexError because
you're indexing into empty list git_arguments.

Fix: First check if git_arguments is not empty, and then check for help
args.

Result: running yolog without arguments shows all commits, similar to
running git log without arguments.