Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump version with output date format added #4

Merged
merged 2 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading