Skip to content
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
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project are documented in this file.

# [2025-02-11] -- 1.1.2
## Improved
- Improved the README file.

## [2025-01-29] -- 1.1.1
## Improved
- Improved the output.
Expand Down
21 changes: 10 additions & 11 deletions README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GNU Hello 2.10 in Python 1.1.1
GNU Hello 2.10 in Python 1.1.2

This is a Python implementation of the GNU Hello program (version 2.10). The program prints a friendly, customizable greeting to the terminal, offering options for traditional messages or custom greetings.

Expand Down Expand Up @@ -60,7 +60,7 @@ python hello.py [OPTIONS]

Output:
```
GNU Hello 2.10 in Python version 1.1.1
GNU Hello 2.10 in Python version 1.1.2

```

Expand All @@ -72,17 +72,16 @@ python hello.py [OPTIONS]

Output:
```
(venv) PS C:\Users\yahan\PycharmProjects\pythonProject\learn_argparse\projects\GNU Hello in Python> python hello.py --help
usage: hello.py [-h] [-v] [-t] [-g TEXT]
usage: hello.py [-h] [-v] [-t] [-g TEXT]

Print a friendly, customizable greeting.
Print a friendly, customizable greeting.

options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-t, --traditional use traditional greeting
-g TEXT, --greeting TEXT
use TEXT as the greeting message
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-t, --traditional use traditional greeting
-g TEXT, --greeting TEXT
use TEXT as the greeting message
```

## Build
Expand Down
4 changes: 2 additions & 2 deletions hello.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# GNU Hello 2.10 in Python version 1.1.1
# GNU Hello 2.10 in Python version 1.1.2
# Copyright (C) 2025 yahange
#
# Description:
Expand Down Expand Up @@ -30,7 +30,7 @@
import argparse

GNU_HELLO_VERSION = "2.10"
PROJECT_VERSION = "1.1.1"
PROJECT_VERSION = "1.1.2"


class RequireValue(argparse.Action):
Expand Down