about summary refs log tree commit diff stats
path: root/ara.pl
diff options
context:
space:
mode:
Diffstat (limited to 'ara.pl')
-rwxr-xr-xara.pl17
1 files changed, 10 insertions, 7 deletions
diff --git a/ara.pl b/ara.pl
index 64210e7..d55fdfc 100755
--- a/ara.pl
+++ b/ara.pl
@@ -17,23 +17,25 @@ foreach my $path (@INC) {
         or die "Unable to unveil: $!";
 }
 
-my ( $use_local_file, $get_latest, $state_notes, $rows_to_print );
+my ( $use_local_file, $get_latest, $state_notes, $rows_to_print, $no_delta );
 
 GetOptions(
     "local" => \$use_local_file,
     "latest" => \$get_latest,
     "notes" => \$state_notes,
     "rows=i" => \$rows_to_print,
+    "nodelta" => \$no_delta,
     "help" => sub { HelpMessage() },
 ) or die "Error in command line arguments";
 
 sub HelpMessage {
     print "Options:
-    --local  Use local data
-    --latest Fetch latest data
-    --notes  Print State Notes
-    --rows=i Number of rows to print (i is Integer)
-    --help   Print this help message
+    --local   Use local data
+    --latest  Fetch latest data
+    --notes   Print State Notes
+    --rows=i  Number of rows to print (i is Integer)
+    --nodelta Don't print changes in values
+    --help    Print this help message
 ";
     exit;
 }
@@ -187,7 +189,8 @@ foreach my $i ( 0 ... $rows_to_print - 1  ) {
         my $deaths = "$statewise->[$i]{deaths}";
 
         # Add delta only if it was updated Today.
-        if ( $update_info eq "Today" ) {
+        if ( $update_info eq "Today"
+                 and not $no_delta ) {
             $confirmed .= sprintf " (%+d)", $statewise->[$i]{deltaconfirmed};
             $recovered .= sprintf " (%+d)", $statewise->[$i]{deltarecovered};
             $deaths .= sprintf " (%+d)", $statewise->[$i]{deltadeaths};
commit/ranger/gui/bar.py?h=v1.9.0b3&id=9cce9fab0792ee0ac17ad4355d9af9274159f294'>9cce9fab ^
ea87d005 ^
9cce9fab ^

ea87d005 ^
9cce9fab ^




























ea87d005 ^
af17562d ^
9cce9fab ^


9cce9fab ^

af17562d ^


9cce9fab ^

af17562d ^
9cce9fab ^

e6dda13a ^
d4900452 ^
e6dda13a ^


af17562d ^


9cce9fab ^








ea87d005 ^
9cce9fab ^









59698d9d ^
9cce9fab ^
ea87d005 ^
9cce9fab ^

ea87d005 ^
9cce9fab ^










ea87d005 ^
9cce9fab ^




9cce9fab ^


76aee8ea ^
ea87d005 ^
9cce9fab ^
af17562d ^
8c8e7282 ^
9cce9fab ^

8c8e7282 ^
ea87d005 ^
9cce9fab ^
ccbe8b8d ^
9cce9fab ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145