Skip to content

Commit

Permalink
Allow -q updating of a program named "True"
Browse files Browse the repository at this point in the history
  • Loading branch information
hammy275 committed Jun 4, 2020
1 parent 83921b0 commit 0f3ade8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
###VERSIONS###

version = "1.5.3"
prog_internal_version = 93
prog_internal_version = 94
file_version = 15

#############
Expand Down
4 changes: 2 additions & 2 deletions tarstall_execs/tarstall
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def parse_args(args=None):
group.add_argument('-k', '--remove-lock', help="Remove tarstall lock file (only do this if tarstall isn't already "
"running)", action="store_true")
group.add_argument('-c', '--config', help="Change tarstall options", action="store_true")
group.add_argument('-q', '--update-programs', help="Update programs that can be updated, or a single program if supplied.", nargs='?', const="True", type=str)
group.add_argument('-q', '--update-programs', help="Update programs that can be updated, or a single program if supplied.", nargs='?', const=True, type=str)
if args is None:
args = parser.parse_args()
else:
Expand Down Expand Up @@ -806,7 +806,7 @@ def parse_args(args=None):
elif args.config:
configure()

elif args.update_programs == "True":
elif args.update_programs is True:
status = prog_manage.update_programs()
if status == "No git":
generic.pprint("git isn't installed, please install it!")
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.93
15.94

0 comments on commit 0f3ade8

Please sign in to comment.