Skip to content

Commit

Permalink
gpy-depgraph: Fix option defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jul 6, 2024
1 parent 0408569 commit 4615015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gpyutils/scripts/depgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def main(prog_name, *argv):
"counts")
action.add_argument("-d", "--dot-print",
dest="proc_cls", action="store_const",
const=DotPrinter(), default=DotPrinter(),
const=DotPrinter(),
help="Output a .dot graph (default)")
action.add_argument("-D", "--dependencies", metavar="PACKAGE",
help="Print list of all dependencies of given PACKAGE "
Expand All @@ -251,6 +251,7 @@ def main(prog_name, *argv):
help="Ignore dependency relations without USE "
"dependendencies referencing PYTHON_* flags")
opt.add_argument("file", nargs="*")
opt.set_defaults(proc_cls=DotPrinter())
vals = opt.parse_args(list(argv))

if vals.dependencies:
Expand Down

0 comments on commit 4615015

Please sign in to comment.