Skip to content

Commit

Permalink
Fixed some issues with args parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Nov 2, 2020
1 parent 4e552fd commit 4fb3caf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import random
from rich.terminal_theme import TerminalTheme

__version__ = '3.14.1'
__version__ = '3.14.2'
__license__ = 'GPLv3'
__copyright__ = '2019-2020, Paweł Jastrzębski <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down
8 changes: 4 additions & 4 deletions CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import pyperclip
import subprocess
from csv import reader
from shlex import split, quote
from shlex import split
from pathlib import Path
from datetime import datetime
from rich import box
Expand Down Expand Up @@ -380,7 +380,7 @@ def parse_link(self, text, link, dev=None, authors=None, uiversion=None):
def c_install(self, args, recursion=False):
if args:
optignore = False
pargs = split(quote(args))
pargs = split(args.replace("'", "\\'"))
if '-i' in pargs:
optignore = True
args = args.replace('-i', '', 1)
Expand Down Expand Up @@ -423,7 +423,7 @@ def c_install(self, args, recursion=False):
def c_uninstall(self, args):
if args:
optkeep = False
pargs = split(quote(args))
pargs = split(args.replace("'", "\\'"))
if '-k' in pargs:
optkeep = True
args = args.replace('-k', '', 1)
Expand Down Expand Up @@ -543,7 +543,7 @@ def c_status(self, args):
optsource = False
optcompact = False
if args:
pargs = split(quote(args))
pargs = split(args.replace("'", "\\'"))
if '-s' in pargs:
optsource = True
args = args.replace('-s', '', 1)
Expand Down

0 comments on commit 4fb3caf

Please sign in to comment.