@@ -76,9 +76,11 @@ int parse_args(
76
76
(" list-devices,l" , " List the available Vulkan devices (GPUs)" )
77
77
78
78
// General Processing Options
79
- (" input,i" , PO_STR_VALUE<video2x::fsutils::StringType>(), " Input video file path" )
80
- (" output,o" , PO_STR_VALUE<video2x::fsutils::StringType>(), " Output video file path" )
81
- (" processor,p" , PO_STR_VALUE<video2x::fsutils::StringType>(),
79
+ (" input,i" , PO_STR_VALUE<video2x::fsutils::StringType>()->required (),
80
+ " Input video file path" )
81
+ (" output,o" , PO_STR_VALUE<video2x::fsutils::StringType>()->required (),
82
+ " Output video file path" )
83
+ (" processor,p" , PO_STR_VALUE<video2x::fsutils::StringType>()->required (),
82
84
" Processor to use (libplacebo, realesrgan, realcugan, rife)" )
83
85
(" hwaccel,a" , PO_STR_VALUE<video2x::fsutils::StringType>()
84
86
->default_value (STR (" none" ), " none" ), " Hardware acceleration method (decoding)" )
@@ -201,7 +203,6 @@ int parse_args(
201
203
#else
202
204
po::store (po::command_line_parser (argc, argv).options (all_opts).run (), vm);
203
205
#endif
204
- po::notify (vm);
205
206
206
207
if (vm.count (" help" ) || argc == 1 ) {
207
208
std::cout
@@ -236,6 +237,9 @@ int parse_args(
236
237
return 1 ;
237
238
}
238
239
240
+ // Run all notify functions and validations
241
+ po::notify (vm);
242
+
239
243
if (vm.count (" log-level" )) {
240
244
if (!video2x::logger_manager::LoggerManager::instance ().set_log_level (
241
245
wstring_to_u8string (vm[" log-level" ].as <video2x::fsutils::StringType>())
0 commit comments