mirror of
https://github.com/fmang/opustags.git
synced 2025-07-08 02:24:30 +02:00
Fix non deterministic argument parsing
This commit is contained in:
@ -18,8 +18,10 @@ ArgumentError::ArgumentError(const std::string &message)
|
||||
|
||||
Options::Options() :
|
||||
show_help(false),
|
||||
show_version(false),
|
||||
overwrite(false),
|
||||
full(false)
|
||||
full(false),
|
||||
in_place(false)
|
||||
{
|
||||
}
|
||||
|
||||
@ -139,7 +141,7 @@ Options opustags::parse_args(const int argc, char **argv)
|
||||
{
|
||||
std::string long_arg = long_def[option_index].name;
|
||||
if (long_arg == "stream")
|
||||
current_streamno = atoi(optarg);
|
||||
current_streamno = std::atoi(optarg);
|
||||
else if (long_arg == "full")
|
||||
options.full = true;
|
||||
else if (long_arg == "export")
|
||||
|
Reference in New Issue
Block a user