Skip to content

Commit

Permalink
bump version + readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
khumnath committed Nov 16, 2024
1 parent 6a96532 commit 7023d28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
nepdate-cli (1.0.0) stable; urgency=medium
nepdate-cli (1.0.2) stable; urgency=medium

* Initial release.
* update with date output format
* added option to display only Bikram sambat date
* rearranged for repo change

-- khumnath <[email protected]> Fri, 09 Aug 2024 12:00:00 +0000
12 changes: 6 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ int main(int argc, char *argv[]) {
<< "\e[0m" << std::endl;

std::cerr << "Usage: \n"
<< " \e[31mShow today's date: ./ndate --today [--unicode] [--format format_string]\n\e[0m"
<< " \e[31mConvert to Bikram Sambat Date: ./ndate --tobs year month day [--unicode] [--format format_string]\n\e[0m"
<< " \e[31mConvert to Gregorian Date: ./ndate --toad year month day [--unicode] [--format format_string]\n\e[0m"
<< " \e[31mShow today's date: ./nepdate-cli --today [--unicode] [--format format_string]\n\e[0m"
<< " \e[31mConvert to Bikram Sambat Date: ./nepdate-cli --tobs year month day [--unicode] [--format format_string]\n\e[0m"
<< " \e[31mConvert to Gregorian Date: ./nepdate-cli --toad year month day [--unicode] [--format format_string]\n\e[0m"
<< "Options:\n"
<< " \e[31m--unicode : Display the date in Unicode format (Devanagari script).\e[0m\n"
<< " \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"
Expand All @@ -209,9 +209,9 @@ int main(int argc, char *argv[]) {
<< " \e[31mw : Weekday name\n"
<< " \e[31mM : Month name\n\e[0m"
<< "\nExample commands:\n"
<< " \e[31m./ndate --today --unicode --format 'd-M-y' : Show today's date in Unicode with custom format.\n"
<< " ./ndate --tobs 2024 11 15 --unicode --format 'y-m-d' : Convert a Gregorian date to Bikram Sambat date.\n"
<< " ./ndate --toad 2081 8 30 --unicode --format 'y/m/d' : Convert a Nepali date to Gregorian date.\n\e[0m"
<< " \e[31m./nepdate-cli --today --unicode --format 'd-M-y' : Show today's date in Unicode with custom format.\n"
<< " ./nepdate-cli --tobs 2024 11 15 --unicode --format 'y-m-d' : Convert a Gregorian date to Bikram Sambat date.\n"
<< " ./nepdate-cli --toad 2081 8 30 --unicode --format 'y/m/d' : Convert a Nepali date to Gregorian date.\n\e[0m"
<< "\e[35mFor more information, visit: https://github.com/opensource-nepal/nepdate-cli\n\e[0m";

return 0;
Expand Down

0 comments on commit 7023d28

Please sign in to comment.