|
17 | 17 | help="search a question on StackOverflow", |
18 | 18 | action="store_true") |
19 | 19 |
|
20 | | -parser.add_argument("-V", |
| 20 | +parser.add_argument("-v", |
21 | 21 | "--version", |
22 | 22 | version=f"Dynamic-CLI version {version}", |
23 | 23 | action='version') |
24 | 24 |
|
25 | 25 |
|
26 | | -parser.add_argument( |
27 | | - "-n", |
28 | | - "--new", |
29 | | - help="Opens browser to create new StackOverflow question.", |
30 | | - const=True, |
31 | | - metavar="title (optional)", |
32 | | - nargs="?") |
| 26 | +parser.add_argument("-n", |
| 27 | + "--new", |
| 28 | + help="Opens browser to create new StackOverflow question.", |
| 29 | + const=True, |
| 30 | + metavar="title (optional)", |
| 31 | + nargs="?") |
33 | 32 |
|
34 | 33 | parser.add_argument("-file", |
35 | 34 | "--file", |
|
77 | 76 |
|
78 | 77 | if __name__ == "__main__": |
79 | 78 | if ARGV.start: |
80 | | - print(''' |
81 | | - \U0001F604 Hello and Welcome to Dynamic CLI |
82 | | - \U0001F917 Use the following commands to get started |
83 | | - \U0001F50E Search on StackOverflow with '-s' |
84 | | - \U0001F4C4 Open browser to create new Stack Overflow question with '-n [title(optional)]' |
85 | | - \U0001F4C2 Save answer to a file with '-file' |
86 | | - \U00002728 Know the version of Dynamic CLI with '-V' |
87 | | - \U0001F609 See this message again with '-st' |
88 | | - \U00002755 Get help with '-h' |
89 | | - ''') |
| 79 | + print('''\U0001F604 Hello and Welcome to Dynamic CLI |
| 80 | + \U0001F917 Use the following commands to get started |
| 81 | + \U0001F50E Search on StackOverflow with '-s' |
| 82 | + \U0001F4C4 Open browser to create new Stack Overflow question with '-n [title(optional)]' |
| 83 | + \U0001F4C2 Save answer to a file with '-file' |
| 84 | + \U00002728 Know the version of Dynamic CLI with '-V' |
| 85 | + \U0001F609 See this message again with '-st' |
| 86 | + \U00002755 Get help with '-h' |
| 87 | + ''') |
90 | 88 | else: |
91 | 89 | search_flag.search_args() |
0 commit comments