@@ -24,7 +24,7 @@ class App:
24
24
""" Contains all settings and meta information for the application. """
25
25
26
26
name : str = 'tochd'
27
- version : str = '0.8 '
27
+ version : str = '0.9 '
28
28
types = {
29
29
'sheet' : ('gdi' , 'cue' ,),
30
30
'image' : ('iso' ,),
@@ -315,7 +315,8 @@ def message_job(self, message: str, path: Path, jobindex: int) -> None:
315
315
pad_size : int = 12
316
316
pad_size = pad_size - len (str (jobindex ))
317
317
padded_msg = message .rjust (pad_size )
318
- print ('Job' , jobindex , padded_msg + ':\t ' , path .as_posix ())
318
+ message = f"Job { jobindex } { padded_msg } :\t { path .as_posix ()} "
319
+ print (message , flush = True )
319
320
return None
320
321
321
322
@classmethod
@@ -438,11 +439,12 @@ def parse_arguments(args: list[str] | None = None) -> Argparse:
438
439
'file' ,
439
440
default = [],
440
441
nargs = '*' ,
441
- help = ('input multiple files or folders with ISOs or archives, all '
442
- 'supported files from a given folder are processed, in addition '
443
- 'use option dash "-" to read files from stdin for each line, '
444
- 'note: option "--" stops parsing for options and everything '
445
- 'after is a filename even those starting with a single dash "-"' )
442
+ help = ('input multiple files or folders containing ISOs or archive '
443
+ 'files, script will search for supported files in top level of '
444
+ 'a folder, a single dash "-" character will instruct the script '
445
+ 'to read file paths from stdin for each line, note: option '
446
+ 'double dash "--" will stop parsing for program options and '
447
+ 'everything following that is interpreted as a file' )
446
448
)
447
449
448
450
parser .add_argument (
@@ -478,14 +480,14 @@ def parse_arguments(args: list[str] | None = None) -> Argparse:
478
480
dest = 'p7z' ,
479
481
metavar = 'CMD' ,
480
482
default = '7z' ,
481
- help = 'change path or command name of 7z program'
483
+ help = 'change path or command name to 7z program'
482
484
)
483
485
484
486
parser .add_argument (
485
487
'--chdman' ,
486
488
metavar = 'CMD' ,
487
489
default = 'chdman' ,
488
- help = 'change path or command name of chdman program'
490
+ help = 'change path or command name to chdman program'
489
491
)
490
492
491
493
parser .add_argument (
@@ -494,7 +496,7 @@ def parse_arguments(args: list[str] | None = None) -> Argparse:
494
496
default = None ,
495
497
help = ('destination path to an existing directory to save the CHD file '
496
498
'under, the temporary subfolder will be created here too, '
497
- 'defaults to each input files original directory ' )
499
+ 'defaults to each input files original folder ' )
498
500
)
499
501
500
502
parser .add_argument (
@@ -503,7 +505,8 @@ def parse_arguments(args: list[str] | None = None) -> Argparse:
503
505
action = 'store_true' ,
504
506
help = ('disable automatic renaming for CHD files that were build from '
505
507
'archives, no test for "if file already exists" can be provided '
506
- 'beforehand, only applicable to archive sources' )
508
+ 'beforehand, only applicable to archive sources, without this '
509
+ 'option files from archives are renamed to match the archive' )
507
510
)
508
511
509
512
parser .add_argument (
@@ -534,8 +537,9 @@ def parse_arguments(args: list[str] | None = None) -> Argparse:
534
537
type = int ,
535
538
choices = range (0 , cpucount ()),
536
539
help = ('limit the number of processor cores to utilize during '
537
- 'creation of the CHD files with "chdman", 0 will not limit '
538
- f'the cores (available: { os .cpu_count ()} ), defaults to "0"' )
540
+ 'creation of the CHD files with "chdman" for each thread, '
541
+ f'0 will not limit the cores (available: { os .cpu_count ()} ), '
542
+ 'defaults to "0"' )
539
543
)
540
544
541
545
parser .add_argument (
@@ -559,9 +563,9 @@ def parse_arguments(args: list[str] | None = None) -> Argparse:
559
563
default = False ,
560
564
action = 'store_true' ,
561
565
help = ('Ctrl+c (SIGINT) will stop execution of script immadiately '
562
- 'with exit code 255, without this option the script defaults to '
563
- 'canceling current job process properly and continue with next '
564
- 'job process' )
566
+ 'with exit code 255, which could leave temporary files, without '
567
+ 'this option the script defaults to canceling current job '
568
+ 'process properly and continue with next job process in list ' )
565
569
)
566
570
567
571
parser .add_argument (
0 commit comments