Skip to content

Commit cad8c0c

Browse files
committed
ypf
1 parent 2d8c5be commit cad8c0c

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

main.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@
55

66
version = "0.1"
77

8-
PARSER = argparse.ArgumentParser()
9-
PARSER.add_argument("-s",
8+
parser = argparse.ArgumentParser()
9+
parser.add_argument("-s",
1010
"--search",
1111
help="enable debug mode",
1212
action="store_true")
1313

14-
PARSER.add_argument("-V",
14+
parser.add_argument("-V",
1515
"--version",
1616
version=f"Dynamic-CLI version {version}",
1717
action='version')
1818

19-
PARSER.add_argument("-n",
20-
"--new",
21-
help="Opens browser to create new Stack Overflow question.",
22-
const=True,
23-
metavar="title (optional)",
24-
nargs="?")
19+
parser.add_argument(
20+
"-n",
21+
"--new",
22+
help="Opens browser to create new Stack Overflow question.",
23+
const=True,
24+
metavar="title (optional)",
25+
nargs="?")
2526

26-
ARGV = PARSER.parse_args()
27+
ARGV = parser.parse_args()
2728

2829
search_flag = Search(ARGV)
2930

src/arguments/markdown.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from rich.console import Console
33
import html as html
44

5+
56
class MarkdownRenderer(object):
67
def __init__(self, markdown_text, console_print=True):
78
assert isinstance(markdown_text, str), "Expected a string"

src/arguments/utility.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
console = Console()
1010

11+
1112
class Utility():
1213
def __init__(self):
1314
# the parent url

0 commit comments

Comments
 (0)