Comments (8)
got it sorry for over complicating things..
thanks to @luca-patrignani the issue is resolved
Not a problem at all mate. I am grateful for your contributions!
from tcping.
hi @pouriyajamshidi
Thanks for the mention 😃.
Can you please describe the func
?
from tcping.
Hi @wizsk,
I am willing to hear your proposal to modify the permuteArgs
func. If it proves to be a small change, we can forfeit moving to Cobra for now and save us some work.
from tcping.
ok @pouriyajamshidi I will let you know
from tcping.
hey @pouriyajamshidi
Why can't we do something like this?
// arg 1 and 2 is reserved for url and port
url := os.Args[1]
port := os.Args[2]
// we can parse the rest
os.Args = os.Args[2:]
flag.Parse()
I'm ignoring the error handling
for the -u
flag we can add some extra logic
from tcping.
You want to preserve this functionality
{
"host/ip before option",
args{args: []string{"127.0.0.1", "8080", "-r", "3"}},
[]string{"-r", "3", "127.0.0.1", "8080"},
},
{
"host/ip after option",
args{args: []string{"-r", "3", "127.0.0.1", "8080"}},
[]string{"-r", "3", "127.0.0.1", "8080"},
}
this is why everything is getting all over the place
from tcping.
well, to be frank, that is how all other OS utilities work. The order in which you provide the flags never matters.
from tcping.
got it sorry for over complicating things..
thanks to @luca-patrignani the issue is resolved
from tcping.
Related Issues (20)
- README Translation - Chinese
- add TTL in output please HOT 3
- Please add "count" and "interval" option HOT 3
- Add tcping to winget
- output interface HOT 13
- v2.0.0 is not listed on Go module proxy due to missing /v2 suffix in the "module" path HOT 8
- Database closure before the appropriate time. HOT 2
- Include db.go in the Makefile HOT 10
- add `-c` flag to stop after n probes HOT 4
- Use standard `time.Duration` for storing/working with durations HOT 3
- Automate the release process
- Starting and exiting immediately prints "NaN% packet loss" HOT 1
- Windows terminal link in `README.md` is broken
- Time report is not accurate HOT 4
- Move any output-related logic to printers (and vice-versa) HOT 2
- `-c` flag does not print `TCPing ended at` information HOT 2
- One failed probe prints `No response received for 0 seconds` HOT 4
- Add BSD support
- fix CI warnings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcping.