mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Revert "Exit with error if no filename given to -e switch"
This reverts commit 6df4a7bb40
.
As Vincent points out, this commit is not correct. For one reason,
it would incorrectly exit with error for the following syntax:
lyx myfile.lyx -e pdf
I will look for a correct solution to the problem specified in the
message of the reverted commit.
This commit is contained in:
parent
43bc4df451
commit
2c2c17675d
@ -1119,17 +1119,13 @@ int parse_export_to(string const & type, string const & output_file, string & ba
|
||||
}
|
||||
|
||||
|
||||
int parse_export(string const & type, string const & file, string & batch)
|
||||
int parse_export(string const & type, string const &, string & batch)
|
||||
{
|
||||
if (type.empty()) {
|
||||
lyxerr << to_utf8(_("Missing file type [eg latex, ps...] after "
|
||||
"--export switch")) << endl;
|
||||
exit(1);
|
||||
}
|
||||
if (file.empty()) {
|
||||
lyxerr << to_utf8(_("Missing filename after format")) << endl;
|
||||
exit(1);
|
||||
}
|
||||
batch = "buffer-export " + type;
|
||||
use_gui = false;
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user