#NEWLINE# def parse_partition( rule ) : #NEWLINE# #INDENT# '\n    Parse the partition line\n    ' #NEWLINE# parser = argparse . ArgumentParser ( ) #NEWLINE# rules = shlex . split ( rule ) #NEWLINE# rules . pop ( 0 ) #NEWLINE# parser . add_argument ( 'mntpoint' ) #NEWLINE# parser . add_argument ( '--size' , dest = 'size' , action = 'store' ) #NEWLINE# parser . add_argument ( '--grow' , dest = 'grow' , action = 'store_true' ) #NEWLINE# parser . add_argument ( '--maxsize' , dest = 'maxsize' , action = 'store' ) #NEWLINE# parser . add_argument ( '--noformat' , dest = 'noformat' , action = 'store_true' ) #NEWLINE# parser . add_argument ( '--onpart' , '--usepart' , dest = 'onpart' , action = 'store' ) #NEWLINE# parser . add_argument ( '--ondisk' , '--ondrive' , dest = 'ondisk' , action = 'store' ) #NEWLINE# parser . add_argument ( '--asprimary' , dest = 'asprimary' , action = 'store_true' ) #NEWLINE# parser . add_argument ( '--fsprofile' , dest = 'fsprofile' , action = 'store' ) #NEWLINE# parser . add_argument ( '--fstype' , dest = 'fstype' , action = 'store' ) #NEWLINE# parser . add_argument ( '--fsoptions' , dest = 'fsoptions' , action = 'store' ) #NEWLINE# parser . add_argument ( '--label' , dest = 'label' , action = 'store' ) #NEWLINE# parser . add_argument ( '--recommended' , dest = 'recommended' , action = 'store_true' ) #NEWLINE# parser . add_argument ( '--onbiosdisk' , dest = 'onbiosdisk' , action = 'store' ) #NEWLINE# parser . add_argument ( '--encrypted' , dest = 'encrypted' , action = 'store_true' ) #NEWLINE# parser . add_argument ( '--passphrase' , dest = 'passphrase' , action = 'store' ) #NEWLINE# parser . add_argument ( '--escrowcert' , dest = 'escrowcert' , action = 'store' ) #NEWLINE# parser . add_argument ( '--backupphrase' , dest = 'backupphrase' , action = 'store' ) #NEWLINE# args = clean_args ( vars ( parser . parse_args ( rule ) ) ) #NEWLINE# parser = None #NEWLINE# return args