nyx-cmd-modules/battery/nyx_cmd_battery_read.cpp
string NyxCmdBatteryRead::resolveArguments(int argc, char **argv)
{
	string retVal;

	if (optind < argc)
	{
		retVal = argv[optind++];
	}
	else
	{
		cerr << "Error: Not enough arguments" << endl;
	}

	return retVal;
}
/*
* Parses the command line arguments and resolves them to proper variables.
*/
Parses the command line arguments and resolves them to proper variables.
Parses the command line arguments and resolves them to proper variables .
string NyxCmdBatteryRead::resolveArguments(int argc, char **argv)
{
	string retVal;
	if (optind < argc)
	{
		retVal = argv[optind++];
	}
	else
	{
		cerr << "Error: Not enough arguments" << endl;
	}
	return retVal;
}
string NyxCmdBatteryRead :: resolveArguments ( int argc , char * * argv ) { string retVal ; if ( optind < argc ) { retVal = argv [ optind ++ ] ; } else { cerr << " " << endl ; } return retVal ; }
Parses the command line arguments and resolves them to proper variables.
Parses the command line arguments and resolves them to proper variables .