comparison libervia/cli/arg_tools.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 47401850dec6
children
comparison
equal deleted inserted replaced
4269:64a85ce8be70 4270:0d7bb4df2343
90 ).format(name=arg, value=escape(value)) 90 ).format(name=arg, value=escape(value))
91 ) 91 )
92 else: 92 else:
93 if verbose: 93 if verbose:
94 host.disp( 94 host.disp(
95 _("arg {name}={value} (in USE)").format( 95 _("arg {name}={value} (in USE)").format(name=arg, value=escape(value))
96 name=arg, value=escape(value)
97 )
98 ) 96 )
99 if not action.option_strings: 97 if not action.option_strings:
100 pos_args.append(value) 98 pos_args.append(value)
101 else: 99 else:
102 opt_args.append(action.option_strings[0]) 100 opt_args.append(action.option_strings[0])