mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-18 03:30:39 +00:00
Removed old -l option for create
This commit is contained in:
parent
1520abd742
commit
1b1e7b1eb8
@ -282,10 +282,6 @@ def get_template_info():
|
|||||||
return os.linesep.join(lines) + os.linesep
|
return os.linesep.join(lines) + os.linesep
|
||||||
|
|
||||||
|
|
||||||
def list_templates():
|
|
||||||
print get_template_info()
|
|
||||||
|
|
||||||
|
|
||||||
def get_template_data(template):
|
def get_template_data(template):
|
||||||
path = os.path.join(get_template_path(), template)
|
path = os.path.join(get_template_path(), template)
|
||||||
try:
|
try:
|
||||||
@ -496,10 +492,7 @@ def run():
|
|||||||
log.setLevel(logging.INFO)
|
log.setLevel(logging.INFO)
|
||||||
|
|
||||||
if command == "create":
|
if command == "create":
|
||||||
if options.list or options.template is None:
|
create_image(options.template[0], disk_image_name)
|
||||||
list_templates()
|
|
||||||
else:
|
|
||||||
create_image(options.template, disk_image_name)
|
|
||||||
else:
|
else:
|
||||||
parser = find_diskimage(disk_image_name)
|
parser = find_diskimage(disk_image_name)
|
||||||
if parser and parser.image:
|
if parser and parser.image:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user