mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
check for use of token with the command line
This commit is contained in:
parent
a8a699da1f
commit
3fa40279f4
1 changed files with 7 additions and 2 deletions
|
@ -51,6 +51,8 @@
|
|||
|
||||
# Instantiate this template: ./tracks_template_cli -c 1 -f template_file.txt
|
||||
|
||||
# Template can also be read from STDIN, however, then you have specify all tokens with -k
|
||||
|
||||
require 'net/https'
|
||||
require 'optparse'
|
||||
require 'cgi'
|
||||
|
@ -278,8 +280,11 @@ module Gtd
|
|||
|
||||
newtok=line.split(' ')[1]
|
||||
|
||||
print "Input required for "+newtok+": "
|
||||
@keywords[newtok]=gets.chomp
|
||||
if @keywords[newtok].nil?
|
||||
print "Input required for "+newtok+": "
|
||||
@keywords[newtok]=gets.chomp
|
||||
end
|
||||
|
||||
next
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue