@@ -229,7 +229,7 @@ def add_target_and_index(self, firstname: str, sig: str, signode: desc_signature
229229 else :
230230 descr = _ ('command line option' )
231231 for option in signode .get ('allnames' , []):
232- entry = '; ' . join ([ descr , option ])
232+ entry = f' { descr } ; { option } '
233233 self .indexnode ['entries' ].append (('pair' , entry , signode ['ids' ][0 ], '' , None ))
234234
235235
@@ -1002,7 +1002,7 @@ def get_objects(self) -> Iterator[tuple[str, str, str, str, str, int]]:
10021002 yield (doc , clean_astext (self .env .titles [doc ]), 'doc' , doc , '' , - 1 )
10031003 for (prog , option ), info in self .progoptions .items ():
10041004 if prog :
1005- fullname = "." . join ([ prog , option ])
1005+ fullname = f' { prog } . { option } '
10061006 yield (fullname , fullname , 'cmdoption' , info [0 ], info [1 ], 1 )
10071007 else :
10081008 yield (option , option , 'cmdoption' , info [0 ], info [1 ], 1 )
@@ -1091,7 +1091,8 @@ def get_full_qualified_name(self, node: Element) -> str | None:
10911091 command .insert (0 , progname )
10921092 option = command .pop ()
10931093 if command :
1094- return '.' .join (['-' .join (command ), option ])
1094+ command_str = '-' .join (command )
1095+ return f'{ command_str } .{ option } '
10951096 else :
10961097 return None
10971098 else :
0 commit comments