Skip to content

Commit 7023d28

Browse files
committed
bump version + readme update
1 parent 6a96532 commit 7023d28

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

debian/changelog

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
nepdate-cli (1.0.0) stable; urgency=medium
1+
nepdate-cli (1.0.2) stable; urgency=medium
22

3-
* Initial release.
3+
* update with date output format
4+
* added option to display only Bikram sambat date
5+
* rearranged for repo change
46

57
-- khumnath <[email protected]> Fri, 09 Aug 2024 12:00:00 +0000

src/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ int main(int argc, char *argv[]) {
196196
<< "\e[0m" << std::endl;
197197

198198
std::cerr << "Usage: \n"
199-
<< " \e[31mShow today's date: ./ndate --today [--unicode] [--format format_string]\n\e[0m"
200-
<< " \e[31mConvert to Bikram Sambat Date: ./ndate --tobs year month day [--unicode] [--format format_string]\n\e[0m"
201-
<< " \e[31mConvert to Gregorian Date: ./ndate --toad year month day [--unicode] [--format format_string]\n\e[0m"
199+
<< " \e[31mShow today's date: ./nepdate-cli --today [--unicode] [--format format_string]\n\e[0m"
200+
<< " \e[31mConvert to Bikram Sambat Date: ./nepdate-cli --tobs year month day [--unicode] [--format format_string]\n\e[0m"
201+
<< " \e[31mConvert to Gregorian Date: ./nepdate-cli --toad year month day [--unicode] [--format format_string]\n\e[0m"
202202
<< "Options:\n"
203203
<< " \e[31m--unicode : Display the date in Unicode format (Devanagari script).\e[0m\n"
204204
<< " \e[31m--format format_string : Specify a custom format for the date (e.g., 'y-m-d', 'd-M-y'). \e[0mDefault: 'y-m-d'\n"
@@ -209,9 +209,9 @@ int main(int argc, char *argv[]) {
209209
<< " \e[31mw : Weekday name\n"
210210
<< " \e[31mM : Month name\n\e[0m"
211211
<< "\nExample commands:\n"
212-
<< " \e[31m./ndate --today --unicode --format 'd-M-y' : Show today's date in Unicode with custom format.\n"
213-
<< " ./ndate --tobs 2024 11 15 --unicode --format 'y-m-d' : Convert a Gregorian date to Bikram Sambat date.\n"
214-
<< " ./ndate --toad 2081 8 30 --unicode --format 'y/m/d' : Convert a Nepali date to Gregorian date.\n\e[0m"
212+
<< " \e[31m./nepdate-cli --today --unicode --format 'd-M-y' : Show today's date in Unicode with custom format.\n"
213+
<< " ./nepdate-cli --tobs 2024 11 15 --unicode --format 'y-m-d' : Convert a Gregorian date to Bikram Sambat date.\n"
214+
<< " ./nepdate-cli --toad 2081 8 30 --unicode --format 'y/m/d' : Convert a Nepali date to Gregorian date.\n\e[0m"
215215
<< "\e[35mFor more information, visit: https://github.com/opensource-nepal/nepdate-cli\n\e[0m";
216216

217217
return 0;

0 commit comments

Comments
 (0)