<s> """<STR_LIT>""" <EOL> import atexit <EOL> import argparse <EOL> import subprocess <EOL> from libqtile import command <EOL> def parse_args ( ) : <EOL> parser = argparse . ArgumentParser ( description = "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , type = str , dest = "<STR_LIT>" , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , <EOL> dest = "<STR_LIT>" , action = '<STR_LIT:store_true>' , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , dest = "<STR_LIT>" , action = '<STR_LIT:store_true>' , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , dest = "<STR_LIT>" , <EOL> action = '<STR_LIT:store_true>' , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , dest = "<STR_LIT>" , type = str , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , nargs = argparse . REMAINDER , <EOL> help = '<STR_LIT>' ) <EOL> opts = parser . parse_args ( ) <EOL> if not opts . cmd : <EOL> parser . print_help ( ) <EOL> exit ( ) <EOL> return opts <EOL> def main ( ) : <EOL> opts = parse_args ( ) <EOL> client = command . Client ( opts . socket ) <EOL> proc = subprocess . Popen ( opts . cmd ) <EOL> match_args = { "<STR_LIT>" : [ proc . pid ] } <EOL> rule_args = { "<STR_LIT:float>" : opts . floating , "<STR_LIT>" : opts . intrusive , <EOL> "<STR_LIT>" : opts . group , "<STR_LIT>" : not opts . dont_break } <EOL> rule_id = client . add_rule ( match_args , rule_args ) <EOL> atexit . register ( lambda : client . remove_rule ( rule_id ) ) <EOL> proc . wait ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> try : <EOL> main ( ) <EOL> except KeyboardInterrupt : <EOL> pass </s>
