mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-06 04:16:04 +03:00
added new options: c, C, Q
This commit is contained in:
parent
f44a2a1edf
commit
3efec3d0dd
@ -63,6 +63,15 @@ def parse_args(args):
|
||||
if 'q' in q:
|
||||
result['quiet'] = True
|
||||
|
||||
options_meaning = {
|
||||
"c": dict(add_comments=True),
|
||||
"C": dict(add_comments=False),
|
||||
"Q": dict(remove_text=True),
|
||||
}
|
||||
for option, meaning in options_meaning.items():
|
||||
if option in q:
|
||||
result.update(meaning)
|
||||
|
||||
for key, val in args.items():
|
||||
if val == 'True':
|
||||
val = True
|
||||
|
Loading…
Reference in New Issue
Block a user