parser.add_option("-s", "--slice", action="store_true", dest="slice",
help="Slice the given files instead of opening them in Cura")
parser.add_option("-o", "--output", action="store", type="string", dest="output",
- help="Directory or file to write sliced files to")
+ help="path to write sliced file to")
(options, args) = parser.parse_args()
profile.loadPreferences(profile.getPreferencePath())
if options.profile is not None:
- profile.loadProfileFromString(options.profile)
+ profile.setProfileFromString(options.profile)
elif options.profileini is not None:
profile.loadProfile(options.profileini)
else: