WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: version command queries  (Read 1536 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
version command queries
« on: December 20, 2015, 11:14:22 PM »
1)
'version -l' appears redundant to 'version', query streamline:
Code: [Select]
tc@box:/usr/bin$ version
dCore-jessie:2015.12.20.21.26
tc@box:/usr/bin$ version -l
dCore-jessie:2015.12.20.21.26

2)
'version -c' and 'version -r' appear backwards:
Code: [Select]
tc@box:/usr/bin$ version -c
Warning:
You are running dCore-jessie:2015.12.20.21.26
The latest release is dCore-jessie:2015.12.19.12.55
tc@box:/usr/bin$ version -r
You are running dCore-jessie:2015.12.20.21.26, the latest release candidate.
Shouldn't  -c  stand for release CANDIDATE and  -r  stand for REGULAR RELEASE?

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: version command queries
« Reply #1 on: December 21, 2015, 04:32:43 AM »
-c in Core is for the release, I left it that way for consistency between Core and dCore although I see your point.  Same with the -l, I wanted to leave it the same.

I try to leave the utilities as close to behaving the same as I can so one does not have to use -c for release in Core, and -r in dCore for the same output.  And that allows utilities that use things like version to be alble to more easily just work when ported to dCore. 

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: version command queries
« Reply #2 on: December 21, 2015, 06:02:52 AM »
Understood, thanks for the explanation.