Skip to content

Commit

Permalink
Simplified depth logic
Browse files Browse the repository at this point in the history
  • Loading branch information
trag1c committed Sep 24, 2022
1 parent c8963f0 commit 61eaac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dahlia/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def main() -> None:
UNSET = object()
parser = ArgumentParser()
parser.add_argument(
"-d", "--depth", help="set the color depth", type=int, choices={3, 8, 24}
"-d", "--depth", help="set the color depth", type=int, choices={3, 8, 24}, default=24
)
parser.add_argument(
"-t", "--test", help="test the colors", action="store_true"
Expand All @@ -25,7 +25,7 @@ def main() -> None:
)
args = parser.parse_args()

d = Dahlia(depth=Depth(args.depth) if args.depth is not None else Depth.HIGH)
d = Dahlia(depth=Depth(args.depth))
string = args.string

if string is UNSET:
Expand Down

0 comments on commit 61eaac8

Please sign in to comment.