mirror of
https://github.com/iKarith/cppo-ng.git
synced 2025-02-18 16:30:30 +00:00
Add comments to cppo arguments
Duplicating the information from the usage here made it clear that a couple of our arguments are undocumented. Breaking up a larger effort into smaller pieces so that the changes are more visible here.
This commit is contained in:
parent
b55abc4baf
commit
0d17a525ac
9
cppo
9
cppo
@ -71,39 +71,48 @@ def main() -> None:
|
||||
if len(args) == 1:
|
||||
usage()
|
||||
|
||||
# End of flags
|
||||
elif args[1][0] != '-':
|
||||
break
|
||||
|
||||
# [UNDOCUMENTED] suppress afpsync message
|
||||
elif args[1] == '-s':
|
||||
g.afpsync_msg = False
|
||||
args = args[1:]
|
||||
|
||||
# [UNDOCUMENTED] extract files in place
|
||||
elif args[1] == '-n':
|
||||
g.extract_in_place = True
|
||||
args = args[1:]
|
||||
|
||||
# Extract GS/OS mixed case filenames as uppercase
|
||||
elif args[1] == '-uc':
|
||||
g.casefold_upper = True
|
||||
args = args[1:]
|
||||
|
||||
# Create netatalk-compatible AppleDouble resource forks and type data
|
||||
elif args[1] == '-ad':
|
||||
g.use_appledouble = True
|
||||
g.prodos_names = True
|
||||
args = args[1:]
|
||||
|
||||
# Source file is ShrinkIt format (may be implied by extension)
|
||||
elif args[1] == '-shk':
|
||||
g.src_shk = True
|
||||
args = args[1:]
|
||||
|
||||
# Adapt DOS 3.3 files to ProDOS format
|
||||
elif args[1] == '-pro':
|
||||
g.prodos_names = True
|
||||
args = args[1:]
|
||||
|
||||
# Extract filenames using nulib2 conventsions for type/fork info
|
||||
elif args[1] == '-e':
|
||||
g.use_extended = True
|
||||
g.prodos_names = True
|
||||
args = args[1:]
|
||||
|
||||
# Catalog image rather than extract it
|
||||
elif args[1] == '-cat':
|
||||
g.catalog_only = True
|
||||
args = args[1:]
|
||||
|
Loading…
x
Reference in New Issue
Block a user