mirror of
https://github.com/thecompu/Driv3rs.git
synced 2025-01-30 18:36:17 +00:00
Stuck Banner in Usage.
Altered name order.
This commit is contained in:
parent
f54aa8e605
commit
e43df70d84
19
Driv3rs.py
19
Driv3rs.py
@ -6,7 +6,15 @@ import os.path
|
|||||||
# setup args as a variable to hold argv -- there will be three
|
# setup args as a variable to hold argv -- there will be three
|
||||||
# in total script, input file, output file.
|
# in total script, input file, output file.
|
||||||
args = argv
|
args = argv
|
||||||
usage = "\nUsage: python Driv3rs.py [SOS_DRIVER_FILE] [output_file.csv]\n"
|
usage = """
|
||||||
|
****************************************************************
|
||||||
|
* Driv3rs.py - A tiny Python script to help catalog drivers on *
|
||||||
|
* imaged Apple /// disks. By Mike Whalen, Michael Sternberg *
|
||||||
|
* and Paul Hagstrom. Please submit pull requests to Github. *
|
||||||
|
* https://github.com/thecompu/Driv3rs *
|
||||||
|
****************************************************************
|
||||||
|
\nUsage: python Driv3rs.py [SOS_DRIVER_FILE] [output_file.csv]\n
|
||||||
|
"""
|
||||||
|
|
||||||
# check that user passed required number of arguments
|
# check that user passed required number of arguments
|
||||||
if len(args) < 3:
|
if len(args) < 3:
|
||||||
@ -65,15 +73,6 @@ dev_types ={273: 'Character Device, Write-Only, Formatter',
|
|||||||
mfgs = {17491: 'David Schmidt'}
|
mfgs = {17491: 'David Schmidt'}
|
||||||
|
|
||||||
|
|
||||||
print """
|
|
||||||
****************************************************************
|
|
||||||
* Driv3rs.py - A tiny Python script to help catalog drivers on *
|
|
||||||
* imaged Apple /// disks. By Paul Hagstrom, Michael Sternberg *
|
|
||||||
* & Mike Whalen. Please submit pull requests to Github. *
|
|
||||||
* https://github.com/thecompu/Driv3rs *
|
|
||||||
****************************************************************
|
|
||||||
"""
|
|
||||||
|
|
||||||
# open SOS.DRIVER file to interrogate, then read first
|
# open SOS.DRIVER file to interrogate, then read first
|
||||||
# eight bytes and determine if file is actual SOS.DRIVER file.
|
# eight bytes and determine if file is actual SOS.DRIVER file.
|
||||||
# will be replaced with logic to read full disk images (PRODOS)
|
# will be replaced with logic to read full disk images (PRODOS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user