Method: Yast::CommandLineClass#Scan

Defined in:
library/commandline/src/modules/CommandLine.rb

#ScanArray<String>

Scan a command line from stdin, return it split into a list

Returns:

  • (Array<String>)

    the list of command line parts, nil for end of file



1265
1266
1267
1268
1269
1270
# File 'library/commandline/src/modules/CommandLine.rb', line 1265

def Scan
  res = Convert.to_string(SCR.Read(path(".dev.tty")))
  return nil if res.nil?

  String.ParseOptions(res, "separator" => " ")
end