Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb71a646

Browse files
committed
New minor release
1 parent1684570 commitb71a646

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ auto main() -> int
147147
148148
# General info
149149
150-
* Version: 0.2.0
150+
* Version: 0.3.0
151151
* License: MIT
152152
153153
# TODO

‎main.go‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import (
1616
"strings"
1717
)
1818

19+
constversionString="xyproto/go2cpp 0.3.0"
20+
1921
consttupleType="std::tuple"
2022

2123
const (
@@ -1068,7 +1070,10 @@ func main() {
10681070

10691071
inputFilename:=""
10701072
iflen(os.Args)>1 {
1071-
ifos.Args[1]=="--help" {
1073+
ifos.Args[1]=="--version" {
1074+
fmt.Println(versionString)
1075+
return
1076+
}elseifos.Args[1]=="--help" {
10721077
fmt.Println("supported arguments:")
10731078
fmt.Println(" a .go file as the first argument")
10741079
fmt.Println("supported options:")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp