Skip to content

Commit

Permalink
Add --version. Release version 0.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngkz committed Mar 30, 2017
1 parent e621402 commit 5eb6557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/cshc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ parser.add_argument('-v', help = 'verbose mode', action = 'store_true',
dest = 'verbose')
parser.add_argument('-S', help = 'output assembly code.', action = 'store_true',
dest = 'compile_only')
parser.add_argument('--version', action='version', version='%(prog)s ' + cshc.VERSION)
args = parser.parse_args()

archobj = cshc.arch(args.arch, args.verbose)
Expand Down
1 change: 1 addition & 0 deletions lib/cshc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
VERSION = "0.1.0"
from cshc.arch import *

0 comments on commit 5eb6557

Please sign in to comment.