Skip to content

Commit f747bc4

Browse files
committed
Condensed argp init
1 parent 640f251 commit f747bc4

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

remove-json-keys/src/remove_json_keys/lib/settings.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
def load(cli):
2525

2626
# Parse CLI args
27-
argp = argparse.ArgumentParser(
28-
description="Simply remove JSON keys via CLI command",
29-
add_help=False # disable default --help to re-create last
30-
)
27+
argp = argparse.ArgumentParser(description="Simply remove JSON keys via CLI command", add_help=False)
3128
cli.config=sn()
3229
for attr_name in vars(controls):
3330
kwargs = getattr(controls, attr_name).__dict__.copy()

translate-messages/src/translate_messages/lib/settings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ def load(cli, caller_file):
6565

6666
# Parse CLI args
6767
argp = argparse.ArgumentParser(
68-
description="Translate en/messages.json (in chrome.i18n format) to other locales",
69-
add_help=False # disable default --help to re-create last
70-
)
68+
description="Translate en/messages.json (in chrome.i18n format) to other locales", add_help=False)
7169
for attr_name in vars(controls):
7270
kwargs = getattr(controls, attr_name).__dict__.copy()
7371
args = kwargs.pop('args') # separate positional flags

0 commit comments

Comments
 (0)