Skip to content

Commit 7564b67

Browse files
Add --all flag to log subcommand output when used
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 7a9473d commit 7564b67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git_sim/log.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def __init__(self, commits: int, all: bool):
2121

2222
def construct(self):
2323
if not settings.stdout:
24-
print(f"{settings.INFO_STRING} {type(self).__name__.lower()}")
24+
print(
25+
f"{settings.INFO_STRING} {type(self).__name__.lower()}{' --all' if self.all else ''}"
26+
)
2527
self.show_intro()
2628
self.get_commits()
2729
self.parse_commits(self.commits[0], 0)

0 commit comments

Comments
 (0)