File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 55
66version = "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
2829search_flag = Search (ARGV )
2930
Original file line number Diff line number Diff line change 22from rich .console import Console
33import html as html
44
5+
56class MarkdownRenderer (object ):
67 def __init__ (self , markdown_text , console_print = True ):
78 assert isinstance (markdown_text , str ), "Expected a string"
Original file line number Diff line number Diff line change 88
99console = Console ()
1010
11+
1112class Utility ():
1213 def __init__ (self ):
1314 # the parent url
You can’t perform that action at this time.
0 commit comments