getOptionExportMethod method
Gets the export method option formatted for command-line usage.
Returns:
'--export-method "value"'if the option is provided- Empty string if the option is not provided
Example:
final exportMethodFlag = argResults.getOptionExportMethod();
// Returns '--export-method "app-store"' or ''
Implementation
String getOptionExportMethod() => this?['export-method'] != null
? '--export-method "${this!['export-method']}"'
: '';