main() {
# Defaults
debug=0
- dir_data="$HOME/.khatus"
+ dir_data=$(mktemp -d)
weather_station_id='KJFK'
screen_brightness_device_name='acpi_video0'
prefixes_of_net_interfaces_to_show='w' # comma-separated
# User-overrides
long_options=''
long_options+='debug'
- long_options+=',data-dir:'
- long_options+=',weather-station:'
- long_options+=',screen-device:'
+ long_options+=',data_dir:'
+ long_options+=',weather_station:'
+ long_options+=',screen_device:'
long_options+=',prefixes_of_net_interfaces_to_show:'
long_options+=',disk_space_device:'
+ long_options+=',disk_io_device:'
long_options+=',thermal_zone:'
long_options+=',fan_path:'
OPTS=$(
debug=1
shift
;;
- --data-dir)
+ --data_dir)
dir_data="$2"
shift 2
;;
- --weather-station)
+ --weather_station)
weather_station_id="$2"
shift 2
;;
- --screen-device)
+ --screen_device)
screen_brightness_device_name="$2"
shift 2
;;